DescriptionSupport 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 #
Messages
Total messages: 17 (7 generated)
|