DescriptionSKPDF: refactor pdfcatalog and pdfdocument
SkPDFCatalog:
- remove first-page-specific code (no longer needed, never
used) (e.g. addObject()).
- Make use of SkHashMap for lookups (simplifies code).
- inline all small methods
- emitXrefTable moved to SkPDFDocument.cpp
- no longer store offsets in this data structure (moved to
SkPDFDocument.cpp)
- setFileOffset gone.
- own substitute refs directly.
SkPDFDocument::EmitPDF()
- All sites that call into SkPDFCatalog modified.
- catalog.addObject only called in a single place, after the
resouceSet is built
- offsets moved to local array.
SkPDFPage:
- finalizePage no longer deals with SkPDFCatalog or resource sets.
- GeneratePageTree no longer deals with SkPDFCatalog
SkPDFObjRef
- emitObject respects the substitution map
Unit Tests:
- respect SkPDFCatalog::addObject signature change.
SkTHash:
- #include SkChecksum for SkGoodHash
- Copyright notice added
Committed: https://skia.googlesource.com/skia/+/f41061cc8dc717b63efe75d2357a3176f04153ec
Patch Set 1 : 2015-03-23 (Monday) 18:41:58 EDT #Patch Set 2 : 2015-03-23 (Monday) 19:02:27 EDT #
Total comments: 8
Patch Set 3 : 2015-03-24 (Tuesday) 16:07:27 EDT #Patch Set 4 : rebase #Patch Set 5 : 2015-03-25 (Wednesday) 12:10:27 EDT #Patch Set 6 : 2015-03-25 (Wednesday) 13:23:40 EDT #Patch Set 7 : 2015-03-25 (Wednesday) 14:17:42 EDT #
Messages
Total messages: 35 (15 generated)
|