| 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 SkTestScalerContext_DEFINED | 8 #ifndef SkTestScalerContext_DEFINED |
| 9 #define SkTestScalerContext_DEFINED | 9 #define SkTestScalerContext_DEFINED |
| 10 | 10 |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 void getMetrics(SkGlyph* glyph); | 66 void getMetrics(SkGlyph* glyph); |
| 67 void getPath(const SkGlyph& glyph, SkPath* path); | 67 void getPath(const SkGlyph& glyph, SkPath* path); |
| 68 protected: | 68 protected: |
| 69 SkScalerContext* onCreateScalerContext(const SkDescriptor* desc) const SK_OV
ERRIDE; | 69 SkScalerContext* onCreateScalerContext(const SkDescriptor* desc) const SK_OV
ERRIDE; |
| 70 void onFilterRec(SkScalerContextRec* rec) const SK_OVERRIDE; | 70 void onFilterRec(SkScalerContextRec* rec) const SK_OVERRIDE; |
| 71 virtual SkAdvancedTypefaceMetrics* onGetAdvancedTypefaceMetrics( | 71 virtual SkAdvancedTypefaceMetrics* onGetAdvancedTypefaceMetrics( |
| 72 SkAdvancedTypefaceMetrics::PerGlyphInfo , | 72 SkAdvancedTypefaceMetrics::PerGlyphInfo , |
| 73 const uint32_t* glyphIDs, | 73 const uint32_t* glyphIDs, |
| 74 uint32_t glyphIDsCount) const SK_OVERRIDE; | 74 uint32_t glyphIDsCount) const SK_OVERRIDE; |
| 75 | 75 |
| 76 SkStream* onOpenStream(int* ttcIndex) const SK_OVERRIDE { | 76 SkStreamAsset* onOpenStream(int* ttcIndex) const SK_OVERRIDE { |
| 77 SkASSERT(0); // don't expect to get here | 77 SkASSERT(0); // don't expect to get here |
| 78 return NULL; | 78 return NULL; |
| 79 } | 79 } |
| 80 | 80 |
| 81 void onGetFontDescriptor(SkFontDescriptor* desc, bool* isLocal) const SK_OVE
RRIDE; | 81 void onGetFontDescriptor(SkFontDescriptor* desc, bool* isLocal) const SK_OVE
RRIDE; |
| 82 | 82 |
| 83 virtual int onCharsToGlyphs(const void* chars, Encoding encoding, | 83 virtual int onCharsToGlyphs(const void* chars, Encoding encoding, |
| 84 uint16_t glyphs[], int glyphCount) const SK_OVER
RIDE; | 84 uint16_t glyphs[], int glyphCount) const SK_OVER
RIDE; |
| 85 | 85 |
| 86 int onCountGlyphs() const SK_OVERRIDE { | 86 int onCountGlyphs() const SK_OVERRIDE { |
| (...skipping 17 matching lines...) Expand all Loading... |
| 104 return 0; | 104 return 0; |
| 105 } | 105 } |
| 106 private: | 106 private: |
| 107 SkTestFont* fTestFont; | 107 SkTestFont* fTestFont; |
| 108 friend class SkTestScalerContext; | 108 friend class SkTestScalerContext; |
| 109 }; | 109 }; |
| 110 | 110 |
| 111 SkTypeface* CreateTestTypeface(const char* name, SkTypeface::Style style); | 111 SkTypeface* CreateTestTypeface(const char* name, SkTypeface::Style style); |
| 112 | 112 |
| 113 #endif | 113 #endif |
| OLD | NEW |