Index: core/fpdfapi/render/cpdf_renderstatus.cpp |
diff --git a/core/fpdfapi/render/cpdf_renderstatus.cpp b/core/fpdfapi/render/cpdf_renderstatus.cpp |
index 88dbb030cea4c60ec5118d7b36b17c3dee8a3b2a..b23b98cdb169fe21015901f860ae223bcd46f4c1 100644 |
--- a/core/fpdfapi/render/cpdf_renderstatus.cpp |
+++ b/core/fpdfapi/render/cpdf_renderstatus.cpp |
@@ -898,6 +898,7 @@ std::unique_ptr<CFX_DIBitmap> DrawPatternBitmap( |
context.AppendLayer(pPattern->form(), &mtPattern2Bitmap); |
context.Render(&bitmap_device, &options, nullptr); |
#if defined _SKIA_SUPPORT_PATHS_ |
+ bitmap_device.Flush(); |
pBitmap->UnPreMultiply(); |
#endif |
return pBitmap; |
@@ -1553,6 +1554,7 @@ bool CPDF_RenderStatus::ProcessTransparency(CPDF_PageObject* pPageObj, |
pFormResource, true); |
bitmap_render.ProcessObjectNoClip(pPageObj, &new_matrix); |
#if defined _SKIA_SUPPORT_PATHS_ |
+ bitmap_device.Flush(); |
bitmap->UnPreMultiply(); |
#endif |
m_bStopped = bitmap_render.m_bStopped; |