Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(643)

Side by Side Diff: src/core/SkGlyphCache.h

Issue 834103004: Remove distance field generation and storage from SkGlyphCache. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/core/SkGlyph.h ('k') | src/core/SkGlyphCache.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/core/SkGlyph.h ('k') | src/core/SkGlyphCache.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698