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

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

Issue 1216983003: Move the GlyphCache to use a hash table instead of doing its own ad-hoc (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 5 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 | « no previous file | src/core/SkGlyphCache.h » ('j') | src/core/SkGlyphCache.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2006 The Android Open Source Project 2 * Copyright 2006 The Android Open Source Project
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef SkGlyph_DEFINED 8 #ifndef SkGlyph_DEFINED
9 #define SkGlyph_DEFINED 9 #define SkGlyph_DEFINED
10 10
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 encounters an error measuring a glyph). Note: this does not alter the 110 encounters an error measuring a glyph). Note: this does not alter the
111 fImage, fPath, fID, fMaskFormat fields. 111 fImage, fPath, fID, fMaskFormat fields.
112 */ 112 */
113 void zeroMetrics(); 113 void zeroMetrics();
114 114
115 void toMask(SkMask* mask) const; 115 void toMask(SkMask* mask) const;
116 116
117 private: 117 private:
118 // TODO(herb) remove friend statement after SkGlyphCache cleanup. 118 // TODO(herb) remove friend statement after SkGlyphCache cleanup.
119 friend class SkGlyphCache; 119 friend class SkGlyphCache;
120 friend class GlyphTrait;
120 121
121 void initCommon(uint32_t id) { 122 void initCommon(uint32_t id) {
122 fID = id; 123 fID = id;
123 fImage = NULL; 124 fImage = NULL;
124 fPath = NULL; 125 fPath = NULL;
125 fMaskFormat = MASK_FORMAT_UNKNOWN; 126 fMaskFormat = MASK_FORMAT_UNKNOWN;
126 fForceBW = 0; 127 fForceBW = 0;
127 } 128 }
128 129
129 static unsigned ID2Code(uint32_t id) { 130 static unsigned ID2Code(uint32_t id) {
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 167
167 // FIXME - This is needed because the Android frame work directly 168 // FIXME - This is needed because the Android frame work directly
168 // accesses fID. Remove when fID accesses are cleaned up. 169 // accesses fID. Remove when fID accesses are cleaned up.
169 #ifdef SK_BUILD_FOR_ANDROID_FRAMEWORK 170 #ifdef SK_BUILD_FOR_ANDROID_FRAMEWORK
170 public: 171 public:
171 #endif 172 #endif
172 uint32_t fID; 173 uint32_t fID;
173 }; 174 };
174 175
175 #endif 176 #endif
OLDNEW
« no previous file with comments | « no previous file | src/core/SkGlyphCache.h » ('j') | src/core/SkGlyphCache.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698