| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2006-2012 The Android Open Source Project | 2 * Copyright 2006-2012 The Android Open Source Project |
| 3 * Copyright 2012 Mozilla Foundation | 3 * Copyright 2012 Mozilla Foundation |
| 4 * | 4 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 #ifndef SKFONTHOST_FREETYPE_COMMON_H_ | 9 #ifndef SKFONTHOST_FREETYPE_COMMON_H_ |
| 10 #define SKFONTHOST_FREETYPE_COMMON_H_ | 10 #define SKFONTHOST_FREETYPE_COMMON_H_ |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 , fGlyphCount(-1) | 52 , fGlyphCount(-1) |
| 53 {} | 53 {} |
| 54 | 54 |
| 55 virtual SkScalerContext* onCreateScalerContext( | 55 virtual SkScalerContext* onCreateScalerContext( |
| 56 const SkDescriptor*) const SK_OVERRIDE; | 56 const SkDescriptor*) const SK_OVERRIDE; |
| 57 virtual void onFilterRec(SkScalerContextRec*) const SK_OVERRIDE; | 57 virtual void onFilterRec(SkScalerContextRec*) const SK_OVERRIDE; |
| 58 virtual SkAdvancedTypefaceMetrics* onGetAdvancedTypefaceMetrics( | 58 virtual SkAdvancedTypefaceMetrics* onGetAdvancedTypefaceMetrics( |
| 59 SkAdvancedTypefaceMetrics::PerGlyphInfo, | 59 SkAdvancedTypefaceMetrics::PerGlyphInfo, |
| 60 const uint32_t*, uint32_t) const SK_OVERRIDE; | 60 const uint32_t*, uint32_t) const SK_OVERRIDE; |
| 61 virtual int onGetUPEM() const SK_OVERRIDE; | 61 virtual int onGetUPEM() const SK_OVERRIDE; |
| 62 | 62 virtual bool onGetKerningPairAdjustments(const uint16_t glyphs[], int count, |
| 63 int32_t adjustments[]) const SK_OVERRIDE; |
| 63 virtual int onCharsToGlyphs(const void* chars, Encoding, uint16_t glyphs[], | 64 virtual int onCharsToGlyphs(const void* chars, Encoding, uint16_t glyphs[], |
| 64 int glyphCount) const SK_OVERRIDE; | 65 int glyphCount) const SK_OVERRIDE; |
| 65 virtual int onCountGlyphs() const SK_OVERRIDE; | 66 virtual int onCountGlyphs() const SK_OVERRIDE; |
| 66 | 67 |
| 67 virtual LocalizedStrings* onCreateFamilyNameIterator() const SK_OVERRIDE; | 68 virtual LocalizedStrings* onCreateFamilyNameIterator() const SK_OVERRIDE; |
| 68 | 69 |
| 69 virtual int onGetTableTags(SkFontTableTag tags[]) const SK_OVERRIDE; | 70 virtual int onGetTableTags(SkFontTableTag tags[]) const SK_OVERRIDE; |
| 70 virtual size_t onGetTableData(SkFontTableTag, size_t offset, | 71 virtual size_t onGetTableData(SkFontTableTag, size_t offset, |
| 71 size_t length, void* data) const SK_OVERRIDE; | 72 size_t length, void* data) const SK_OVERRIDE; |
| 72 | 73 |
| 73 private: | 74 private: |
| 74 mutable int fGlyphCount; | 75 mutable int fGlyphCount; |
| 75 | 76 |
| 76 typedef SkTypeface INHERITED; | 77 typedef SkTypeface INHERITED; |
| 77 }; | 78 }; |
| 78 | 79 |
| 79 #endif // SKFONTHOST_FREETYPE_COMMON_H_ | 80 #endif // SKFONTHOST_FREETYPE_COMMON_H_ |
| OLD | NEW |