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

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

Issue 434623002: Remove ALL font fallback logic from Skia. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix win font host Created 6 years, 4 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/SkPaint.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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « src/core/SkGlyph.h ('k') | src/core/SkPaint.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698