diff options
Diffstat (limited to 'core/fxge/include')
-rw-r--r-- | core/fxge/include/cfx_fxgedevice.h | 7 | ||||
-rw-r--r-- | core/fxge/include/cfx_renderdevice.h | 6 | ||||
-rw-r--r-- | core/fxge/include/ifx_renderdevicedriver.h | 6 |
3 files changed, 19 insertions, 0 deletions
diff --git a/core/fxge/include/cfx_fxgedevice.h b/core/fxge/include/cfx_fxgedevice.h index a5dba37c3e..7f34f1ca4a 100644 --- a/core/fxge/include/cfx_fxgedevice.h +++ b/core/fxge/include/cfx_fxgedevice.h @@ -28,8 +28,15 @@ class CFX_FxgeDevice : public CFX_RenderDevice { #ifdef _SKIA_SUPPORT_ bool AttachRecorder(SkPictureRecorder* recorder); + void Clear(uint32_t color); SkPictureRecorder* CreateRecorder(int size_x, int size_y); void DebugVerifyBitmapIsPreMultiplied() const override; + bool SetBitsWithMask(const CFX_DIBSource* pBitmap, + const CFX_DIBSource* pMask, + int left, + int top, + int bitmap_alpha, + int blend_type) override; #endif private: diff --git a/core/fxge/include/cfx_renderdevice.h b/core/fxge/include/cfx_renderdevice.h index fafa6260e1..390d39b69d 100644 --- a/core/fxge/include/cfx_renderdevice.h +++ b/core/fxge/include/cfx_renderdevice.h @@ -253,6 +253,12 @@ class CFX_RenderDevice { #ifdef _SKIA_SUPPORT_ virtual void DebugVerifyBitmapIsPreMultiplied() const; + virtual bool SetBitsWithMask(const CFX_DIBSource* pBitmap, + const CFX_DIBSource* pMask, + int left, + int top, + int bitmap_alpha, + int blend_type); void Flush(); #endif diff --git a/core/fxge/include/ifx_renderdevicedriver.h b/core/fxge/include/ifx_renderdevicedriver.h index 572469b8c0..8b20cf0838 100644 --- a/core/fxge/include/ifx_renderdevicedriver.h +++ b/core/fxge/include/ifx_renderdevicedriver.h @@ -99,6 +99,12 @@ class IFX_RenderDeviceDriver { const FX_RECT& clip_rect, int alpha, FX_BOOL bAlphaMode); + virtual bool SetBitsWithMask(const CFX_DIBSource* pBitmap, + const CFX_DIBSource* pMask, + int left, + int top, + int bitmap_alpha, + int blend_type); }; #endif // CORE_FXGE_INCLUDE_IFX_RENDERDEVICEDRIVER_H_ |