SkPDF: Glyph Useage Map improvements
authorhalcanary <halcanary@google.com>
Thu, 30 Jun 2016 18:55:07 +0000 (11:55 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 30 Jun 2016 18:55:07 +0000 (11:55 -0700)
commit3c35fb3310c22eb0141c8f39c5423f7bcd42adff
treef7238cbcc539606975a0e11dc361c66ba1c23cea
parentd46cdc4c99c0f400b9f7357eb2b877c35707e9c7
SkPDF: Glyph Useage Map improvements

Instead of having a fFontGlyphUsage on each device and one on each
document, just have the one on the document, and never merge.

Make fGlyphUsage accesible on SkPDFDocument.

Remove SkPDFGlyphSetMap::merge, ::reset, and SkPDFGlyphSet::merge.

SkPDFGlyphSetMap has an TArray of SkPDFGlyphSet, not TDArray of
SkPDFGlyphSet pointers.  SkPDFGlyphSet and SkPDFBitset get move
constructors.

All tests produce exactly identical output PDFs.

BUG=skia:5434
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2112943002

Review-Url: https://codereview.chromium.org/2112943002
src/pdf/SkPDFDevice.cpp
src/pdf/SkPDFDevice.h
src/pdf/SkPDFDocument.cpp
src/pdf/SkPDFDocument.h
src/pdf/SkPDFFont.cpp
src/pdf/SkPDFFont.h
src/utils/SkBitSet.cpp
src/utils/SkBitSet.h