OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #ifndef SkTypeface_win_dw_DEFINED | 8 #ifndef SkTypeface_win_dw_DEFINED |
9 #define SkTypeface_win_dw_DEFINED | 9 #define SkTypeface_win_dw_DEFINED |
10 | 10 |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 } | 89 } |
90 if (fDWriteFontFileLoader.get()) { | 90 if (fDWriteFontFileLoader.get()) { |
91 HRV(fFactory->UnregisterFontFileLoader(fDWriteFontFileLoader.get()))
; | 91 HRV(fFactory->UnregisterFontFileLoader(fDWriteFontFileLoader.get()))
; |
92 } | 92 } |
93 | 93 |
94 //SkTypefaceCache::Remove(this); | 94 //SkTypefaceCache::Remove(this); |
95 INHERITED::weak_dispose(); | 95 INHERITED::weak_dispose(); |
96 } | 96 } |
97 | 97 |
98 SkStreamAsset* onOpenStream(int* ttcIndex) const override; | 98 SkStreamAsset* onOpenStream(int* ttcIndex) const override; |
99 SkScalerContext* onCreateScalerContext(const SkDescriptor*) const override; | 99 SkScalerContext* onCreateScalerContext(const SkScalerContextEffects&, |
| 100 const SkDescriptor*) const override; |
100 void onFilterRec(SkScalerContextRec*) const override; | 101 void onFilterRec(SkScalerContextRec*) const override; |
101 SkAdvancedTypefaceMetrics* onGetAdvancedTypefaceMetrics( | 102 SkAdvancedTypefaceMetrics* onGetAdvancedTypefaceMetrics( |
102 PerGlyphInfo, const uint32_t*, uint32_t) const o
verride; | 103 PerGlyphInfo, const uint32_t*, uint32_t) const o
verride; |
103 void onGetFontDescriptor(SkFontDescriptor*, bool*) const override; | 104 void onGetFontDescriptor(SkFontDescriptor*, bool*) const override; |
104 virtual int onCharsToGlyphs(const void* chars, Encoding encoding, | 105 virtual int onCharsToGlyphs(const void* chars, Encoding encoding, |
105 uint16_t glyphs[], int glyphCount) const overrid
e; | 106 uint16_t glyphs[], int glyphCount) const overrid
e; |
106 int onCountGlyphs() const override; | 107 int onCountGlyphs() const override; |
107 int onGetUPEM() const override; | 108 int onGetUPEM() const override; |
108 void onGetFamilyName(SkString* familyName) const override; | 109 void onGetFamilyName(SkString* familyName) const override; |
109 SkTypeface::LocalizedStrings* onCreateFamilyNameIterator() const override; | 110 SkTypeface::LocalizedStrings* onCreateFamilyNameIterator() const override; |
110 int onGetTableTags(SkFontTableTag tags[]) const override; | 111 int onGetTableTags(SkFontTableTag tags[]) const override; |
111 virtual size_t onGetTableData(SkFontTableTag, size_t offset, | 112 virtual size_t onGetTableData(SkFontTableTag, size_t offset, |
112 size_t length, void* data) const override; | 113 size_t length, void* data) const override; |
113 | 114 |
114 private: | 115 private: |
115 typedef SkTypeface INHERITED; | 116 typedef SkTypeface INHERITED; |
116 }; | 117 }; |
117 | 118 |
118 #endif | 119 #endif |
OLD | NEW |