From 8f875507a986d10335e40a5f7c1679aff9770d0a Mon Sep 17 00:00:00 2001 From: caryclark Date: Tue, 6 Dec 2016 13:49:34 -0800 Subject: re-enable skia caching 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 --- core/fxge/ifx_renderdevicedriver.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'core/fxge/ifx_renderdevicedriver.cpp') diff --git a/core/fxge/ifx_renderdevicedriver.cpp b/core/fxge/ifx_renderdevicedriver.cpp index 07a4c27277..77af00f430 100644 --- a/core/fxge/ifx_renderdevicedriver.cpp +++ b/core/fxge/ifx_renderdevicedriver.cpp @@ -99,3 +99,7 @@ bool IFX_RenderDeviceDriver::SetBitsWithMask(const CFX_DIBSource* pBitmap, int blend_type) { return false; } + +#if defined _SKIA_SUPPORT_ || _SKIA_SUPPORT_PATHS_ +void IFX_RenderDeviceDriver::Flush() {} +#endif -- cgit v1.2.3