mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-04 10:22:55 +00:00
6e79d50640
- Add BitmapFactory property - Expose InvokeRenderAsync as virtual
25 lines
673 B
C#
25 lines
673 B
C#
// Copyright © 2010-2015 The CefSharp Authors. All rights reserved.
|
|
//
|
|
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
|
|
|
|
using CefSharp.Internals;
|
|
|
|
namespace CefSharp.OffScreen
|
|
{
|
|
public class BitmapFactory : IBitmapFactory
|
|
{
|
|
private readonly object bitmapLock;
|
|
|
|
public BitmapFactory(object lockObject)
|
|
{
|
|
bitmapLock = lockObject;
|
|
}
|
|
|
|
BitmapInfo IBitmapFactory.CreateBitmap(bool isPopup, double dpiScale)
|
|
{
|
|
//The bitmap buffer is 32 BPP
|
|
return new GdiBitmapInfo { IsPopup = isPopup, BitmapLock = bitmapLock };
|
|
}
|
|
}
|
|
}
|