summaryrefslogtreecommitdiff
path: root/fpdfsdk/fpdfview.cpp
diff options
context:
space:
mode:
authorCary Clark <caryclark@skia.org>2017-07-25 10:39:10 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-07-25 14:53:28 +0000
commit364d18b13575a2b569e9fc175cb0dd60106fa954 (patch)
tree56f594a9b9309330a6c91408132f19fb296b66e5 /fpdfsdk/fpdfview.cpp
parentc411eb943bb51e16ff4fb5a6ffb06e277ca6a982 (diff)
downloadpdfium-364d18b13575a2b569e9fc175cb0dd60106fa954.tar.xz
flush but do not release skia driver
Most calls to the Skia Driver combine flushing the draw cache with deleting the driver itself. Progressive drawing needs to flush the cache to keep drawing in order, but the driver must remain for the next progressive draw. R=dsinclair@chromium.org, hnakashima@chromium.org Bug: pdfium:833 Change-Id: I311f80b2dc0ef6e4df9a3a0f082ae076cb7a591f Reviewed-on: https://pdfium-review.googlesource.com/8890 Reviewed-by: dsinclair <dsinclair@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'fpdfsdk/fpdfview.cpp')
-rw-r--r--fpdfsdk/fpdfview.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/fpdfsdk/fpdfview.cpp b/fpdfsdk/fpdfview.cpp
index f8823c994c..956e6db671 100644
--- a/fpdfsdk/fpdfview.cpp
+++ b/fpdfsdk/fpdfview.cpp
@@ -940,7 +940,7 @@ DLLEXPORT void STDCALL FPDF_RenderPageBitmap(FPDF_BITMAP bitmap,
rotate, flags, true, nullptr);
#ifdef _SKIA_SUPPORT_PATHS_
- pDevice->Flush();
+ pDevice->Flush(true);
pBitmap->UnPreMultiply();
#endif
pPage->SetRenderContext(nullptr);