|
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
Total comments: 6
|
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
|
Total messages: 25 (18 generated)
|