Index: core/fpdfapi/render/cpdf_renderstatus.cpp |
diff --git a/core/fpdfapi/render/cpdf_renderstatus.cpp b/core/fpdfapi/render/cpdf_renderstatus.cpp |
index f16d3f8ad14e0b15ab5d176e1b27187007efd51a..d9f2a82276d4188eb6d877e505528c3db0d1a037 100644 |
--- a/core/fpdfapi/render/cpdf_renderstatus.cpp |
+++ b/core/fpdfapi/render/cpdf_renderstatus.cpp |
@@ -1125,6 +1125,9 @@ void CPDF_RenderStatus::ProcessObjectNoClip(CPDF_PageObject* pObj, |
#if defined _SKIA_SUPPORT_ |
DebugVerifyDeviceIsPreMultiplied(); |
#endif |
+#if defined _SKIA_SUPPORT_PATHS_ |
+ UnPreMultiplyDevice(); |
+#endif |
} |
bool CPDF_RenderStatus::DrawObjWithBlend(CPDF_PageObject* pObj, |
@@ -1646,6 +1649,12 @@ void CPDF_RenderStatus::DebugVerifyDeviceIsPreMultiplied() const { |
} |
#endif |
+#if defined _SKIA_SUPPORT_PATHS_ |
+void CPDF_RenderStatus::UnPreMultiplyDevice() { |
+ m_pDevice->UnPreMultiplyDevice(); |
+} |
+#endif |
+ |
bool CPDF_RenderStatus::ProcessText(CPDF_TextObject* textobj, |
const CFX_Matrix* pObj2Device, |
CFX_PathData* pClippingPath) { |