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

Issue 1837113004: Support the device font cache (Closed)

Created:
4 years, 8 months ago by caryclark
Modified:
4 years, 8 months ago
Reviewers:
Tom Sepez, dsinclair
CC:
pdfium-reviews_googlegroups.com
Base URL:
https://pdfium.googlesource.com/pdfium@master
Target Ref:
refs/heads/master
Project:
pdfium
Visibility:
Public.

Description

Support the device font cache Reuse the Skia typeface on sucessive text draw calls. This reduces the SKP size by 100x for some documents. Note that this does not use a smart pointer for the Skia typeface object. The downside of doing so is that it requires all clients that include fx_font.h to also have access to Skia. In this specific case, it is preferable to have a forward declared class to isolate Skia from the rest of PDFium. R=dsinclair,tsepez@chromium.org Committed: https://pdfium.googlesource.com/pdfium/+/f8a5ef3056619c1a8e7d1108ac3720c97ca8e67d

Patch Set 1 #

Patch Set 2 : fix formatting #

Total comments: 2

Patch Set 3 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -2 lines) Patch
A + core/fxge/ge/DEPS View 0 chunks +-1 lines, --1 lines 0 comments Download
M core/fxge/ge/fx_ge_text.cpp View 1 2 4 chunks +31 lines, -1 line 0 comments Download
M core/fxge/skia/fx_skia_device.cpp View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M core/include/fxge/fx_font.h View 1 2 4 chunks +16 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (7 generated)
caryclark
4 years, 8 months ago (2016-04-04 14:04:42 UTC) #3
caryclark
4 years, 8 months ago (2016-04-04 14:19:29 UTC) #4
dsinclair
https://codereview.chromium.org/1837113004/diff/20001/core/include/fxge/fx_font.h File core/include/fxge/fx_font.h (right): https://codereview.chromium.org/1837113004/diff/20001/core/include/fxge/fx_font.h#newcode31 core/include/fxge/fx_font.h:31: class SkTypeface; Should do something like: using CFX_TypeFace = ...
4 years, 8 months ago (2016-04-04 17:09:15 UTC) #5
Tom Sepez
lgtm
4 years, 8 months ago (2016-04-04 18:20:53 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1837113004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1837113004/40001
4 years, 8 months ago (2016-04-04 19:05:10 UTC) #8
caryclark
https://codereview.chromium.org/1837113004/diff/20001/core/include/fxge/fx_font.h File core/include/fxge/fx_font.h (right): https://codereview.chromium.org/1837113004/diff/20001/core/include/fxge/fx_font.h#newcode31 core/include/fxge/fx_font.h:31: class SkTypeface; On 2016/04/04 17:09:15, dsinclair wrote: > Should ...
4 years, 8 months ago (2016-04-04 19:05:11 UTC) #9
dsinclair
lgtm
4 years, 8 months ago (2016-04-04 19:10:03 UTC) #10
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-04 19:20:22 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1837113004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1837113004/40001
4 years, 8 months ago (2016-04-04 19:27:01 UTC) #15
commit-bot: I haz the power
4 years, 8 months ago (2016-04-04 19:27:21 UTC) #17
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://pdfium.googlesource.com/pdfium/+/f8a5ef3056619c1a8e7d1108ac3720c97ca8...

Powered by Google App Engine
This is Rietveld 408576698