Index: core/fxge/skia/fx_skia_device.h |
diff --git a/core/fxge/skia/fx_skia_device.h b/core/fxge/skia/fx_skia_device.h |
index 8a1bf690b292da5d56975df59f828e1a3333be07..45a936332c913b5a49b0409b968e8ec4c67b3ddd 100644 |
--- a/core/fxge/skia/fx_skia_device.h |
+++ b/core/fxge/skia/fx_skia_device.h |
@@ -5,7 +5,7 @@ |
#ifndef CORE_FXGE_SKIA_FX_SKIA_DEVICE_H_ |
#define CORE_FXGE_SKIA_FX_SKIA_DEVICE_H_ |
-#if defined(_SKIA_SUPPORT_) |
+#if defined _SKIA_SUPPORT_ || defined _SKIA_SUPPORT_PATHS_ |
#include "core/fxge/include/cfx_pathdata.h" |
#include "core/fxge/include/ifx_renderdevicedriver.h" |
@@ -26,8 +26,10 @@ class CFX_SkiaDeviceDriver : public IFX_RenderDeviceDriver { |
FX_BOOL bRgbByteOrder, |
CFX_DIBitmap* pOriDevice, |
FX_BOOL bGroupKnockout); |
+#ifdef _SKIA_SUPPORT_ |
explicit CFX_SkiaDeviceDriver(SkPictureRecorder* recorder); |
CFX_SkiaDeviceDriver(int size_x, int size_y); |
+#endif |
~CFX_SkiaDeviceDriver() override; |
/** Options */ |
@@ -85,12 +87,14 @@ class CFX_SkiaDeviceDriver : public IFX_RenderDeviceDriver { |
int dest_left, |
int dest_top, |
int blend_type) override; |
+#ifdef _SKIA_SUPPORT_ |
bool SetBitsWithMask(const CFX_DIBSource* pBitmap, |
const CFX_DIBSource* pMask, |
int dest_left, |
int dest_top, |
int bitmap_alpha, |
int blend_type) override; |
+#endif |
FX_BOOL StretchDIBits(const CFX_DIBSource* pBitmap, |
uint32_t color, |
int dest_left, |
@@ -127,11 +131,13 @@ class CFX_SkiaDeviceDriver : public IFX_RenderDeviceDriver { |
FX_FLOAT font_size, |
uint32_t color) override; |
+#ifdef _SKIA_SUPPORT_ |
FX_BOOL DrawShading(const CPDF_ShadingPattern* pPattern, |
const CFX_Matrix* pMatrix, |
const FX_RECT& clip_rect, |
int alpha, |
FX_BOOL bAlphaMode) override; |
+#endif |
virtual uint8_t* GetBuffer() const; |
@@ -155,6 +161,10 @@ class CFX_SkiaDeviceDriver : public IFX_RenderDeviceDriver { |
SkPictureRecorder* const m_pRecorder; |
std::unique_ptr<SkiaState> m_pCache; |
FX_BOOL m_bGroupKnockout; |
+#ifndef _SKIA_SUPPORT_ |
+ std::unique_ptr<CFX_ClipRgn> m_pClipRgn; |
+ FX_BOOL m_bRgbByteOrder; |
+#endif |
}; |
#endif // defined(_SKIA_SUPPORT_) |