summaryrefslogtreecommitdiff
path: root/core/fxge/fx_dib.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/fxge/fx_dib.h')
-rw-r--r--core/fxge/fx_dib.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/core/fxge/fx_dib.h b/core/fxge/fx_dib.h
index c42c964bde..daf2cdf9a5 100644
--- a/core/fxge/fx_dib.h
+++ b/core/fxge/fx_dib.h
@@ -248,7 +248,7 @@ class CFX_DIBSource {
int& src_top,
const CFX_ClipRgn* pClipRgn);
-#if defined _SKIA_SUPPORT_
+#if defined _SKIA_SUPPORT_ || defined _SKIA_SUPPORT_PATHS_
void DebugVerifyBitmapIsPreMultiplied(void* buffer = nullptr) const;
#endif
@@ -371,11 +371,20 @@ class CFX_DIBitmap : public CFX_DIBSource {
bool ConvertColorScale(uint32_t forecolor, uint32_t backcolor);
+#ifdef _SKIA_SUPPORT_PATHS_
+ bool IsMarkedForUnPreMultiply() const { return m_bUnPreMultiply; }
+
+ void MarkForUnPreMultiply(bool mark) { m_bUnPreMultiply = mark; }
+#endif
+
protected:
bool GetGrayData(void* pIccTransform = nullptr);
uint8_t* m_pBuffer;
bool m_bExtBuf;
+#ifdef _SKIA_SUPPORT_PATHS_
+ bool m_bUnPreMultiply;
+#endif
};
class CFX_DIBExtractor {