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

Issue 2253283004: SkPDF: in-place font subsetting (Closed)

Created:
4 years, 4 months ago by hal.canary
Modified:
4 years, 4 months ago
Reviewers:
bungeman-skia
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@SkPdfCacheMetrics
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

SkPDF: in-place font subsetting Motivation: gross code simplification, also no bitset lookups at draw time. SkPDFFont owns its glyph useage bitset. SkPDFSubstituteMap goes away. SkPDFObject interface is simplified. SkPDFDocument tracks font usage (as hash set), not glyph usage. SkPDFFont gets a simpler constructor. SkPDFFont has first and last glyph set in constructor, not adjusted later. SkPDFFont implementations are simplified. SkPDFGlyphSet is replaced with simple SkBitSet. SkPDFFont sizes its SkBitSets based on glyph count. SkPDFGlyphSetMap goes away. SkBitSet is now non-copyable. SkBitSet now how utility methods to match old SkPDFGlyphSet. GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2253283004 CQ_INCLUDE_TRYBOTS=master.client.skia:Test-Win-MSVC-GCE-CPU-AVX2-x86_64-Release-GDI-Trybot,Test-Win-MSVC-GCE-CPU-AVX2-x86_64-Debug-GDI-Trybot Committed: https://skia.googlesource.com/skia/+/530032a18e373ee673ae96fdbfa1fae6292f8f08

Patch Set 1 #

Total comments: 6

Patch Set 2 : 2016-08-18 (Thursday) 16:02:16 EDT #

Unified diffs Side-by-side diffs Delta from patch set Stats (+222 lines, -506 lines) Patch
M bench/PDFBench.cpp View 1 chunk +2 lines, -3 lines 0 comments Download
M src/pdf/SkPDFBitmap.cpp View 6 chunks +11 lines, -23 lines 0 comments Download
M src/pdf/SkPDFDevice.h View 1 chunk +0 lines, -4 lines 0 comments Download
M src/pdf/SkPDFDevice.cpp View 4 chunks +3 lines, -8 lines 0 comments Download
M src/pdf/SkPDFDocument.h View 3 chunks +4 lines, -5 lines 0 comments Download
M src/pdf/SkPDFDocument.cpp View 6 chunks +12 lines, -21 lines 0 comments Download
M src/pdf/SkPDFFont.h View 4 chunks +16 lines, -57 lines 0 comments Download
M src/pdf/SkPDFFont.cpp View 14 chunks +66 lines, -177 lines 0 comments Download
M src/pdf/SkPDFGraphicState.h View 1 chunk +1 line, -2 lines 0 comments Download
M src/pdf/SkPDFGraphicState.cpp View 2 chunks +2 lines, -3 lines 0 comments Download
M src/pdf/SkPDFMakeToUnicodeCmap.h View 1 chunk +2 lines, -2 lines 0 comments Download
M src/pdf/SkPDFMakeToUnicodeCmap.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M src/pdf/SkPDFMetadata.cpp View 1 chunk +2 lines, -3 lines 0 comments Download
M src/pdf/SkPDFTypes.h View 11 chunks +16 lines, -57 lines 0 comments Download
M src/pdf/SkPDFTypes.cpp View 15 chunks +41 lines, -79 lines 0 comments Download
M src/utils/SkBitSet.h View 1 4 chunks +15 lines, -3 lines 0 comments Download
M src/utils/SkBitSet.cpp View 2 chunks +8 lines, -13 lines 0 comments Download
M tests/BitSetTest.cpp View 1 chunk +0 lines, -3 lines 0 comments Download
M tests/PDFGlyphsToUnicodeTest.cpp View 5 chunks +7 lines, -5 lines 0 comments Download
M tests/PDFPrimitivesTest.cpp View 6 chunks +12 lines, -36 lines 0 comments Download

Messages

Total messages: 25 (18 generated)
hal.canary
PTAL. 20 files changed, 222 insertions(+), 506 deletions(-) All PDF outputs are the same!
4 years, 4 months ago (2016-08-18 19:01:44 UTC) #5
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/2253283004/1
4 years, 4 months ago (2016-08-18 19:03:09 UTC) #9
bungeman-skia
https://codereview.chromium.org/2253283004/diff/1/src/pdf/SkPDFFont.cpp File src/pdf/SkPDFFont.cpp (right): https://codereview.chromium.org/2253283004/diff/1/src/pdf/SkPDFFont.cpp#newcode54 src/pdf/SkPDFFont.cpp:54: void getFontSubset(SkPDFCanon*) override {} // TODO(halcanary): implement Is this ...
4 years, 4 months ago (2016-08-18 19:37:00 UTC) #13
hal.canary
https://codereview.chromium.org/2253283004/diff/1/src/pdf/SkPDFFont.cpp File src/pdf/SkPDFFont.cpp (right): https://codereview.chromium.org/2253283004/diff/1/src/pdf/SkPDFFont.cpp#newcode54 src/pdf/SkPDFFont.cpp:54: void getFontSubset(SkPDFCanon*) override {} // TODO(halcanary): implement On 2016/08/18 ...
4 years, 4 months ago (2016-08-18 20:02:32 UTC) #16
bungeman-skia
lgtm
4 years, 4 months ago (2016-08-18 20:48:18 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/2253283004/20001
4 years, 4 months ago (2016-08-18 21:21:59 UTC) #23
commit-bot: I haz the power
4 years, 4 months ago (2016-08-18 21:22:55 UTC) #25
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://skia.googlesource.com/skia/+/530032a18e373ee673ae96fdbfa1fae6292f8f08

Powered by Google App Engine
This is Rietveld 408576698