SkPDF: SkPDFFont organization changes.
authorhalcanary <halcanary@google.com>
Tue, 9 Aug 2016 20:04:34 +0000 (13:04 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 9 Aug 2016 20:04:34 +0000 (13:04 -0700)
commit8eccc308c8adcdf26ffc7c4dd538b71f33c6f22b
treea05b3bfa26ccf05e733b0776a0e1fe788fad5528
parent9bc1187249f27ffed448b49ad75fd226d8181241
SkPDF: SkPDFFont organization changes.

SkPDFFont:
  - SkPDFType1Font::populate() encode advances correctly.
  - break out logically independent code into new files:
    * SkPDFConvertType1FontStream
    * SkPDFMakeToUnicodeCmap
    SkPDFFont.cpp is now 380 lines smaller.
    Expose `SkPDFAppendCmapSections()` for testing.

SkPDFFontImpl.h
  - Fold into SkPDFFont.

SkPDFConvertType1FontStream:
  - Now assume given a SkStreamAsset

SkPDFFont:
  - AdvanceMetric now hidden in a anonymous namespace.

No public API changes.
TBR=reed@google.com

GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2221163002

Review-Url: https://codereview.chromium.org/2221163002
gyp/pdf.gypi
include/core/SkTypeface.h
src/pdf/SkPDFConvertType1FontStream.cpp [new file with mode: 0644]
src/pdf/SkPDFConvertType1FontStream.h [new file with mode: 0644]
src/pdf/SkPDFFont.cpp
src/pdf/SkPDFFont.h
src/pdf/SkPDFFontImpl.h [deleted file]
src/pdf/SkPDFMakeToUnicodeCmap.cpp [new file with mode: 0644]
src/pdf/SkPDFMakeToUnicodeCmap.h [new file with mode: 0644]
tests/PDFGlyphsToUnicodeTest.cpp