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

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

Issue 1327703003: Revert of Parallel cache - preliminary (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 3 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/SkDraw.cpp ('k') | src/core/SkGlyphCache.h » ('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 * 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 29 matching lines...) Expand all
40 void* fImage; 40 void* fImage;
41 SkPath* fPath; 41 SkPath* fPath;
42 SkFixed fAdvanceX, fAdvanceY; 42 SkFixed fAdvanceX, fAdvanceY;
43 43
44 uint16_t fWidth, fHeight; 44 uint16_t fWidth, fHeight;
45 int16_t fTop, fLeft; 45 int16_t fTop, fLeft;
46 46
47 uint8_t fMaskFormat; 47 uint8_t fMaskFormat;
48 int8_t fRsbDelta, fLsbDelta; // used by auto-kerning 48 int8_t fRsbDelta, fLsbDelta; // used by auto-kerning
49 int8_t fForceBW; 49 int8_t fForceBW;
50 mutable bool fImageIsSet;
51 mutable bool fPathIsSet;
52 50
53 void initWithGlyphID(uint32_t glyph_id) { 51 void initWithGlyphID(uint32_t glyph_id) {
54 this->initCommon(MakeID(glyph_id)); 52 this->initCommon(MakeID(glyph_id));
55 } 53 }
56 54
57 void initGlyphIdFrom(const SkGlyph& glyph) { 55 void initGlyphIdFrom(const SkGlyph& glyph) {
58 this->initCommon(glyph.fID); 56 this->initCommon(glyph.fID);
59 } 57 }
60 58
61 void initGlyphFromCombinedID(uint32_t combined_id) { 59 void initGlyphFromCombinedID(uint32_t combined_id) {
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 private: 128 private:
131 // TODO(herb) remove friend statement after SkGlyphCache cleanup. 129 // TODO(herb) remove friend statement after SkGlyphCache cleanup.
132 friend class SkGlyphCache; 130 friend class SkGlyphCache;
133 131
134 void initCommon(uint32_t id) { 132 void initCommon(uint32_t id) {
135 fID = id; 133 fID = id;
136 fImage = nullptr; 134 fImage = nullptr;
137 fPath = nullptr; 135 fPath = nullptr;
138 fMaskFormat = MASK_FORMAT_UNKNOWN; 136 fMaskFormat = MASK_FORMAT_UNKNOWN;
139 fForceBW = 0; 137 fForceBW = 0;
140 fImageIsSet = false;
141 fPathIsSet = false;
142 } 138 }
143 139
144 static unsigned ID2Code(uint32_t id) { 140 static unsigned ID2Code(uint32_t id) {
145 return id & kCodeMask; 141 return id & kCodeMask;
146 } 142 }
147 143
148 static unsigned ID2SubX(uint32_t id) { 144 static unsigned ID2SubX(uint32_t id) {
149 return id >> (kSubShift + kSubShiftX); 145 return id >> (kSubShift + kSubShiftX);
150 } 146 }
151 147
(...skipping 29 matching lines...) Expand all
181 177
182 // FIXME - This is needed because the Android frame work directly 178 // FIXME - This is needed because the Android frame work directly
183 // accesses fID. Remove when fID accesses are cleaned up. 179 // accesses fID. Remove when fID accesses are cleaned up.
184 #ifdef SK_BUILD_FOR_ANDROID_FRAMEWORK 180 #ifdef SK_BUILD_FOR_ANDROID_FRAMEWORK
185 public: 181 public:
186 #endif 182 #endif
187 uint32_t fID; 183 uint32_t fID;
188 }; 184 };
189 185
190 #endif 186 #endif
OLDNEW
« no previous file with comments | « src/core/SkDraw.cpp ('k') | src/core/SkGlyphCache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698