| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2006 The Android Open Source Project | 3 * Copyright 2006 The Android Open Source Project |
| 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 | 9 |
| 10 #ifndef SkGlyphCache_DEFINED | 10 #ifndef SkGlyphCache_DEFINED |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 | 69 |
| 70 /** Map the glyph to its Unicode equivalent. Unmappable glyphs map to | 70 /** Map the glyph to its Unicode equivalent. Unmappable glyphs map to |
| 71 a character code of zero. | 71 a character code of zero. |
| 72 */ | 72 */ |
| 73 SkUnichar glyphToUnichar(uint16_t); | 73 SkUnichar glyphToUnichar(uint16_t); |
| 74 | 74 |
| 75 /** Returns the number of glyphs for this strike. | 75 /** Returns the number of glyphs for this strike. |
| 76 */ | 76 */ |
| 77 unsigned getGlyphCount(); | 77 unsigned getGlyphCount(); |
| 78 | 78 |
| 79 #ifdef SK_BUILD_FOR_ANDROID | |
| 80 /** Returns the base glyph count for this strike. | |
| 81 */ | |
| 82 unsigned getBaseGlyphCount(SkUnichar charCode) const { | |
| 83 return fScalerContext->getBaseGlyphCount(charCode); | |
| 84 } | |
| 85 #endif | |
| 86 | |
| 87 /** Return the image associated with the glyph. If it has not been generated | 79 /** Return the image associated with the glyph. If it has not been generated |
| 88 this will trigger that. | 80 this will trigger that. |
| 89 */ | 81 */ |
| 90 const void* findImage(const SkGlyph&); | 82 const void* findImage(const SkGlyph&); |
| 91 /** Return the Path associated with the glyph. If it has not been generated | 83 /** Return the Path associated with the glyph. If it has not been generated |
| 92 this will trigger that. | 84 this will trigger that. |
| 93 */ | 85 */ |
| 94 const SkPath* findPath(const SkGlyph&); | 86 const SkPath* findPath(const SkGlyph&); |
| 95 /** Return the distance field associated with the glyph. If it has not been
generated | 87 /** Return the distance field associated with the glyph. If it has not been
generated |
| 96 this will trigger that. | 88 this will trigger that. |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 308 const SkMatrix* matrix) { | 300 const SkMatrix* matrix) { |
| 309 fCache = paint.detachCache(deviceProperties, matrix, true); | 301 fCache = paint.detachCache(deviceProperties, matrix, true); |
| 310 } | 302 } |
| 311 | 303 |
| 312 private: | 304 private: |
| 313 SkAutoGlyphCacheNoGamma() : SkAutoGlyphCacheBase() {} | 305 SkAutoGlyphCacheNoGamma() : SkAutoGlyphCacheBase() {} |
| 314 }; | 306 }; |
| 315 #define SkAutoGlyphCacheNoGamma(...) SK_REQUIRE_LOCAL_VAR(SkAutoGlyphCacheNoGamm
a) | 307 #define SkAutoGlyphCacheNoGamma(...) SK_REQUIRE_LOCAL_VAR(SkAutoGlyphCacheNoGamm
a) |
| 316 | 308 |
| 317 #endif | 309 #endif |
| OLD | NEW |