| 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 77     unsigned getGlyphCount(); | 77     unsigned getGlyphCount(); | 
| 78 | 78 | 
| 79     /** 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 | 
| 80         this will trigger that. | 80         this will trigger that. | 
| 81     */ | 81     */ | 
| 82     const void* findImage(const SkGlyph&); | 82     const void* findImage(const SkGlyph&); | 
| 83     /** 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 | 
| 84         this will trigger that. | 84         this will trigger that. | 
| 85     */ | 85     */ | 
| 86     const SkPath* findPath(const SkGlyph&); | 86     const SkPath* findPath(const SkGlyph&); | 
| 87     /** Return the distance field associated with the glyph. If it has not been 
     generated |  | 
| 88      this will trigger that. |  | 
| 89      */ |  | 
| 90     const void* findDistanceField(const SkGlyph&); |  | 
| 91 | 87 | 
| 92     /** Return the vertical metrics for this strike. | 88     /** Return the vertical metrics for this strike. | 
| 93     */ | 89     */ | 
| 94     const SkPaint::FontMetrics& getFontMetrics() const { | 90     const SkPaint::FontMetrics& getFontMetrics() const { | 
| 95         return fFontMetrics; | 91         return fFontMetrics; | 
| 96     } | 92     } | 
| 97 | 93 | 
| 98     const SkDescriptor& getDescriptor() const { return *fDesc; } | 94     const SkDescriptor& getDescriptor() const { return *fDesc; } | 
| 99 | 95 | 
| 100     SkMask::Format getMaskFormat() const { | 96     SkMask::Format getMaskFormat() const { | 
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 294                             const SkMatrix* matrix) { | 290                             const SkMatrix* matrix) { | 
| 295         fCache = paint.detachCache(deviceProperties, matrix, true); | 291         fCache = paint.detachCache(deviceProperties, matrix, true); | 
| 296     } | 292     } | 
| 297 | 293 | 
| 298 private: | 294 private: | 
| 299     SkAutoGlyphCacheNoGamma() : SkAutoGlyphCacheBase() {} | 295     SkAutoGlyphCacheNoGamma() : SkAutoGlyphCacheBase() {} | 
| 300 }; | 296 }; | 
| 301 #define SkAutoGlyphCacheNoGamma(...) SK_REQUIRE_LOCAL_VAR(SkAutoGlyphCacheNoGamm
     a) | 297 #define SkAutoGlyphCacheNoGamma(...) SK_REQUIRE_LOCAL_VAR(SkAutoGlyphCacheNoGamm
     a) | 
| 302 | 298 | 
| 303 #endif | 299 #endif | 
| OLD | NEW | 
|---|