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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 }; | 46 }; |
47 | 47 |
48 class SkTypeface_FreeType : public SkTypeface { | 48 class SkTypeface_FreeType : public SkTypeface { |
49 protected: | 49 protected: |
50 SkTypeface_FreeType(Style style, SkFontID uniqueID, bool isFixedWidth) | 50 SkTypeface_FreeType(Style style, SkFontID uniqueID, bool isFixedWidth) |
51 : INHERITED(style, uniqueID, isFixedWidth) {} | 51 : INHERITED(style, uniqueID, isFixedWidth) {} |
52 | 52 |
53 virtual SkScalerContext* onCreateScalerContext( | 53 virtual SkScalerContext* onCreateScalerContext( |
54 const SkDescriptor*) const SK_OVERRIDE; | 54 const SkDescriptor*) const SK_OVERRIDE; |
55 virtual void onFilterRec(SkScalerContextRec*) const SK_OVERRIDE; | 55 virtual void onFilterRec(SkScalerContextRec*) const SK_OVERRIDE; |
56 | 56 virtual SkAdvancedTypefaceMetrics* onGetAdvancedTypefaceMetrics( |
| 57 SkAdvancedTypefaceMetrics::PerGlyphInfo, |
| 58 const uint32_t*, uint32_t) const SK_OVERRIDE; |
57 private: | 59 private: |
58 typedef SkTypeface INHERITED; | 60 typedef SkTypeface INHERITED; |
59 }; | 61 }; |
60 | 62 |
61 #endif // SKFONTHOST_FREETYPE_COMMON_H_ | 63 #endif // SKFONTHOST_FREETYPE_COMMON_H_ |
OLD | NEW |