| 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 | 85 |
| 86 virtual int onCountGlyphs() const SK_OVERRIDE { | 86 virtual int onCountGlyphs() const SK_OVERRIDE { |
| 87 return (int) fTestFont->fCharCodesCount; | 87 return (int) fTestFont->fCharCodesCount; |
| 88 } | 88 } |
| 89 | 89 |
| 90 virtual int onGetUPEM() const SK_OVERRIDE { | 90 virtual int onGetUPEM() const SK_OVERRIDE { |
| 91 SkASSERT(0); // don't expect to get here | 91 SkASSERT(0); // don't expect to get here |
| 92 return 1; | 92 return 1; |
| 93 } | 93 } |
| 94 | 94 |
| 95 virtual void onGetFamilyName(SkString* familyName) const SK_OVERRIDE; |
| 95 virtual SkTypeface::LocalizedStrings* onCreateFamilyNameIterator() const SK_
OVERRIDE; | 96 virtual SkTypeface::LocalizedStrings* onCreateFamilyNameIterator() const SK_
OVERRIDE; |
| 96 | 97 |
| 97 virtual int onGetTableTags(SkFontTableTag tags[]) const SK_OVERRIDE { | 98 virtual int onGetTableTags(SkFontTableTag tags[]) const SK_OVERRIDE { |
| 98 return 0; | 99 return 0; |
| 99 } | 100 } |
| 100 | 101 |
| 101 virtual size_t onGetTableData(SkFontTableTag tag, size_t offset, | 102 virtual size_t onGetTableData(SkFontTableTag tag, size_t offset, |
| 102 size_t length, void* data) const SK_OVERRIDE { | 103 size_t length, void* data) const SK_OVERRIDE { |
| 103 return 0; | 104 return 0; |
| 104 } | 105 } |
| 105 private: | 106 private: |
| 106 SkTestFont* fTestFont; | 107 SkTestFont* fTestFont; |
| 107 friend class SkTestScalerContext; | 108 friend class SkTestScalerContext; |
| 108 }; | 109 }; |
| 109 | 110 |
| 110 SkTypeface* CreateTestTypeface(const char* name, SkTypeface::Style style); | 111 SkTypeface* CreateTestTypeface(const char* name, SkTypeface::Style style); |
| 111 | 112 |
| 112 #endif | 113 #endif |
| OLD | NEW |