summaryrefslogtreecommitdiff
path: root/core/fxge/ifx_renderdevicedriver.h
diff options
context:
space:
mode:
authorcaryclark <caryclark@google.com>2016-12-06 13:49:34 -0800
committerCommit bot <commit-bot@chromium.org>2016-12-06 13:49:34 -0800
commit8f875507a986d10335e40a5f7c1679aff9770d0a (patch)
tree7e466d2741ea5e36b35422d7aa03326a754afff4 /core/fxge/ifx_renderdevicedriver.h
parent6bdb56cad7f9e31183b90152324281ac52c4563d (diff)
downloadpdfium-chromium/2944.tar.xz
re-enable skia cachingchromium/2944
This permits consecutive path drawing or text drawing to combine if their graphics state matches. This speeds up rendering considerably when PDFium draws in many small parts. It also allows discarding changes to the clip state that have no effect from draw to draw. All corpus tests draw equivalently with caching enabled or disabled. Change the member order in CPDF_PageRenderContext so the device is flushed before the referencing annotation is deleted. Add more printf style debugging for test draws. R=dsinclair@chromium.org Review-Url: https://codereview.chromium.org/2546803003
Diffstat (limited to 'core/fxge/ifx_renderdevicedriver.h')
-rw-r--r--core/fxge/ifx_renderdevicedriver.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/fxge/ifx_renderdevicedriver.h b/core/fxge/ifx_renderdevicedriver.h
index 6a99276eba..6a5b63ba32 100644
--- a/core/fxge/ifx_renderdevicedriver.h
+++ b/core/fxge/ifx_renderdevicedriver.h
@@ -103,6 +103,9 @@ class IFX_RenderDeviceDriver {
int top,
int bitmap_alpha,
int blend_type);
+#if defined _SKIA_SUPPORT_ || defined _SKIA_SUPPORT_PATHS_
+ virtual void Flush();
+#endif
};
#endif // CORE_FXGE_IFX_RENDERDEVICEDRIVER_H_