Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2542)

Unified Diff: core/fxge/fx_dib.h

Issue 2504863003: fix corpus tests (Closed)
Patch Set: merge with tot Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « core/fxge/dib/fx_dib_main.cpp ('k') | core/fxge/ge/cfx_renderdevice.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/fxge/fx_dib.h
diff --git a/core/fxge/fx_dib.h b/core/fxge/fx_dib.h
index c42c964bded1e41fff092645f3e2d83ef94510f2..daf2cdf9a5067f046957962e84c8626abb3bd7f8 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 {
« no previous file with comments | « core/fxge/dib/fx_dib_main.cpp ('k') | core/fxge/ge/cfx_renderdevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698