| 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 #endif | 85 #endif |
| 86 | 86 |
| 87 /** Return the image associated with the glyph. If it has not been generated | 87 /** Return the image associated with the glyph. If it has not been generated |
| 88 this will trigger that. | 88 this will trigger that. |
| 89 */ | 89 */ |
| 90 const void* findImage(const SkGlyph&); | 90 const void* findImage(const SkGlyph&); |
| 91 /** Return the Path associated with the glyph. If it has not been generated | 91 /** Return the Path associated with the glyph. If it has not been generated |
| 92 this will trigger that. | 92 this will trigger that. |
| 93 */ | 93 */ |
| 94 const SkPath* findPath(const SkGlyph&); | 94 const SkPath* findPath(const SkGlyph&); |
| 95 /** Return the distance field associated with the glyph. If it has not been
generated |
| 96 this will trigger that. |
| 97 */ |
| 98 const void* findDistanceField(const SkGlyph&); |
| 95 | 99 |
| 96 /** Return the vertical metrics for this strike. | 100 /** Return the vertical metrics for this strike. |
| 97 */ | 101 */ |
| 98 const SkPaint::FontMetrics& getFontMetrics() const { | 102 const SkPaint::FontMetrics& getFontMetrics() const { |
| 99 return fFontMetrics; | 103 return fFontMetrics; |
| 100 } | 104 } |
| 101 | 105 |
| 102 const SkDescriptor& getDescriptor() const { return *fDesc; } | 106 const SkDescriptor& getDescriptor() const { return *fDesc; } |
| 103 | 107 |
| 104 SkMask::Format getMaskFormat() const { | 108 SkMask::Format getMaskFormat() const { |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 267 } | 271 } |
| 268 | 272 |
| 269 private: | 273 private: |
| 270 SkGlyphCache* fCache; | 274 SkGlyphCache* fCache; |
| 271 | 275 |
| 272 static bool DetachProc(const SkGlyphCache*, void*); | 276 static bool DetachProc(const SkGlyphCache*, void*); |
| 273 }; | 277 }; |
| 274 #define SkAutoGlyphCache(...) SK_REQUIRE_LOCAL_VAR(SkAutoGlyphCache) | 278 #define SkAutoGlyphCache(...) SK_REQUIRE_LOCAL_VAR(SkAutoGlyphCache) |
| 275 | 279 |
| 276 #endif | 280 #endif |
| OLD | NEW |