SkPDF: SkPDFFont class changes
authorhalcanary <halcanary@google.com>
Tue, 16 Aug 2016 16:36:23 +0000 (09:36 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 16 Aug 2016 16:36:23 +0000 (09:36 -0700)
commit3287588a467ee579c3947fe13c6add5048b14aa9
treece5c0591a097af58fdcc8c3c0d068b483143f19f
parent883c8efae702462fa28e7ce4f17199bbfa1ce360
SkPDF:  SkPDFFont class changes

SkPDFFont:
  * inline some one-line methdods.
      - SkPDFFont::typeface()
      - SkPDFFont::fontInfo()
      - SkPDFFont::firstGlyphID()
      - SkPDFFont::lastGlyphID()
      - SkPDFFont::getFontDescriptor()
  * de-virtualize some methods:
      - SkPDFFont::getType()
      - SkPDFFont::multiByteGlyphs()
  * Constructor takes more arguments:
    fontType, multiByteGlyphs
  * re-order fields (pointers before shorts)
  * use sk_sp<T> more, T* less

SkAdvancedTypefaceMetrics:
  * SkAdvancedTypefaceMetrics::fFont now a uint8_t
  * other enumes are sized.
  * SkAdvancedTypefaceMetrics::fStyle now big enough.
  * remove use of SkTBitOr, replaced with fancy templates

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

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

Review-Url: https://codereview.chromium.org/2246903002
include/core/SkTypeface.h
include/private/SkBitmaskEnum.h [new file with mode: 0644]
src/core/SkAdvancedTypefaceMetrics.h
src/core/SkTypeface.cpp
src/pdf/SkPDFFont.cpp
src/pdf/SkPDFFont.h
src/ports/SkFontHost_FreeType.cpp
src/ports/SkFontHost_win.cpp