Index: src/ports/SkFontHost_win.cpp |
diff --git a/src/ports/SkFontHost_win.cpp b/src/ports/SkFontHost_win.cpp |
index bb5f8de782e734beeb4768adabe3c2008dbb7402..bcbbe112880adc8bffdbfd3e3df1169a0843a7f9 100755 |
--- a/src/ports/SkFontHost_win.cpp |
+++ b/src/ports/SkFontHost_win.cpp |
@@ -1,4 +1,3 @@ |
- |
/* |
* Copyright 2006 The Android Open Source Project |
* |
@@ -257,9 +256,8 @@ protected: |
SkStreamAsset* onOpenStream(int* ttcIndex) const override; |
SkScalerContext* onCreateScalerContext(const SkDescriptor*) const override; |
void onFilterRec(SkScalerContextRec*) const override; |
- virtual SkAdvancedTypefaceMetrics* onGetAdvancedTypefaceMetrics( |
- SkAdvancedTypefaceMetrics::PerGlyphInfo, |
- const uint32_t*, uint32_t) const override; |
+ SkAdvancedTypefaceMetrics* onGetAdvancedTypefaceMetrics( |
+ PerGlyphInfo, const uint32_t*, uint32_t) const override; |
void onGetFontDescriptor(SkFontDescriptor*, bool*) const override; |
virtual int onCharsToGlyphs(const void* chars, Encoding encoding, |
uint16_t glyphs[], int glyphCount) const override; |
@@ -1733,7 +1731,7 @@ static bool getWidthAdvance(HDC hdc, int gId, int16_t* advance) { |
} |
SkAdvancedTypefaceMetrics* LogFontTypeface::onGetAdvancedTypefaceMetrics( |
- SkAdvancedTypefaceMetrics::PerGlyphInfo perGlyphInfo, |
+ PerGlyphInfo perGlyphInfo, |
const uint32_t* glyphIDs, |
uint32_t glyphIDsCount) const { |
LOGFONT lf = fLogFont; |
@@ -1782,7 +1780,7 @@ SkAdvancedTypefaceMetrics* LogFontTypeface::onGetAdvancedTypefaceMetrics( |
SkAdvancedTypefaceMetrics::kNotEmbeddable_FontFlag); |
} |
- if (perGlyphInfo & SkAdvancedTypefaceMetrics::kToUnicode_PerGlyphInfo) { |
+ if (perGlyphInfo & kToUnicode_PerGlyphInfo) { |
populate_glyph_to_unicode(hdc, glyphCount, &(info->fGlyphToUnicode)); |
} |
@@ -1841,7 +1839,7 @@ SkAdvancedTypefaceMetrics* LogFontTypeface::onGetAdvancedTypefaceMetrics( |
} |
} |
- if (perGlyphInfo & SkAdvancedTypefaceMetrics::kHAdvance_PerGlyphInfo) { |
+ if (perGlyphInfo & kHAdvance_PerGlyphInfo) { |
if (info->fStyle & SkAdvancedTypefaceMetrics::kFixedPitch_Style) { |
appendRange(&info->fGlyphWidths, 0); |
info->fGlyphWidths->fAdvance.append(1, &min_width); |