Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(175)

Issue 2546803003: re-enable skia caching (Closed)

Created:
4 years ago by caryclark
Modified:
4 years ago
Reviewers:
dsinclair
CC:
pdfium-reviews_googlegroups.com
Target Ref:
refs/heads/master
Project:
pdfium
Visibility:
Public.

Description

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 Committed: https://pdfium.googlesource.com/pdfium/+/8f875507a986d10335e40a5f7c1679aff9770d0a

Patch Set 1 #

Patch Set 2 : wip; caching needs work #

Patch Set 3 : wip; still working on cache #

Patch Set 4 : wip; still working on cache #

Patch Set 5 : cache working #

Patch Set 6 : fix skia build #

Patch Set 7 : rebase #

Patch Set 8 : rebase again #

Patch Set 9 : fix mac build #

Patch Set 10 : fix cache version for vertical text #

Patch Set 11 : fix antialiasing, dashing for cache #

Total comments: 4

Patch Set 12 : fix mac build #

Patch Set 13 : remove nullptr #

Unified diffs Side-by-side diffs Delta from patch set Stats (+298 lines, -191 lines) Patch
M core/fpdfapi/cpdf_pagerendercontext.h View 7 1 chunk +1 line, -1 line 0 comments Download
M core/fpdfapi/render/cpdf_renderstatus.cpp View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -0 lines 0 comments Download
M core/fxge/cfx_renderdevice.h View 1 chunk +2 lines, -0 lines 0 comments Download
M core/fxge/ge/cfx_renderdevice.cpp View 7 2 chunks +9 lines, -2 lines 0 comments Download
M core/fxge/ifx_renderdevicedriver.h View 7 1 chunk +3 lines, -0 lines 0 comments Download
M core/fxge/ifx_renderdevicedriver.cpp View 7 1 chunk +4 lines, -0 lines 0 comments Download
M core/fxge/skia/fx_skia_device.h View 1 2 3 4 5 6 7 8 3 chunks +3 lines, -4 lines 0 comments Download
M core/fxge/skia/fx_skia_device.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 41 chunks +270 lines, -182 lines 0 comments Download
M fpdfsdk/fpdfformfill.cpp View 7 1 chunk +3 lines, -2 lines 0 comments Download
M fpdfsdk/fpdfview.cpp View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 23 (17 generated)
caryclark
4 years ago (2016-12-06 18:43:54 UTC) #11
dsinclair
https://codereview.chromium.org/2546803003/diff/200001/core/fxge/skia/fx_skia_device.cpp File core/fxge/skia/fx_skia_device.cpp (right): https://codereview.chromium.org/2546803003/diff/200001/core/fxge/skia/fx_skia_device.cpp#newcode667 core/fxge/skia/fx_skia_device.cpp:667: explicit SkiaState(CFX_SkiaDeviceDriver* pDriver) I think the explicit is only ...
4 years ago (2016-12-06 18:48:26 UTC) #12
caryclark
https://codereview.chromium.org/2546803003/diff/200001/core/fxge/skia/fx_skia_device.cpp File core/fxge/skia/fx_skia_device.cpp (right): https://codereview.chromium.org/2546803003/diff/200001/core/fxge/skia/fx_skia_device.cpp#newcode667 core/fxge/skia/fx_skia_device.cpp:667: explicit SkiaState(CFX_SkiaDeviceDriver* pDriver) On 2016/12/06 18:48:26, dsinclair wrote: > ...
4 years ago (2016-12-06 19:00:37 UTC) #15
dsinclair
lgtm
4 years ago (2016-12-06 21:49:05 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2546803003/240001
4 years ago (2016-12-06 21:49:17 UTC) #20
commit-bot: I haz the power
4 years ago (2016-12-06 21:49:39 UTC) #23
Message was sent while issue was closed.
Committed patchset #13 (id:240001) as
https://pdfium.googlesource.com/pdfium/+/8f875507a986d10335e40a5f7c1679aff977...

Powered by Google App Engine
This is Rietveld 408576698