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

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

Issue 227593010: Move distance field generation to the glyph cache (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Move GrFontScaler back to public interface Created 6 years, 8 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
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