OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 Google Inc. |
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 GrAtlasTextContext_DEFINED | 8 #ifndef GrAtlasTextContext_DEFINED |
9 #define GrAtlasTextContext_DEFINED | 9 #define GrAtlasTextContext_DEFINED |
10 | 10 |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 SkPath fPath; | 156 SkPath fPath; |
157 int fVx; | 157 int fVx; |
158 int fVy; | 158 int fVy; |
159 }; | 159 }; |
160 | 160 |
161 struct Key { | 161 struct Key { |
162 Key() { | 162 Key() { |
163 sk_bzero(this, sizeof(Key)); | 163 sk_bzero(this, sizeof(Key)); |
164 } | 164 } |
165 uint32_t fUniqueID; | 165 uint32_t fUniqueID; |
166 SkPaint::Style fStyle; | |
167 // Color may affect the gamma of the mask we generate, but in a fair
ly limited way. | 166 // Color may affect the gamma of the mask we generate, but in a fair
ly limited way. |
168 // Each color is assigned to on of a fixed number of buckets based o
n its | 167 // Each color is assigned to on of a fixed number of buckets based o
n its |
169 // luminance. For each luminance bucket there is a "canonical color"
that | 168 // luminance. For each luminance bucket there is a "canonical color"
that |
170 // represents the bucket. This functionality is currently only supp
orted for A8 | 169 // represents the bucket. This functionality is currently only supp
orted for A8 |
171 SkColor fCanonicalColor; | 170 SkColor fCanonicalColor; |
| 171 SkPaint::Style fStyle; |
| 172 SkPixelGeometry fPixelGeometry; |
172 bool fHasBlur; | 173 bool fHasBlur; |
173 | 174 |
174 bool operator==(const Key& other) const { | 175 bool operator==(const Key& other) const { |
175 return 0 == memcmp(this, &other, sizeof(Key)); | 176 return 0 == memcmp(this, &other, sizeof(Key)); |
176 } | 177 } |
177 }; | 178 }; |
178 | 179 |
179 struct StrokeInfo { | 180 struct StrokeInfo { |
180 SkScalar fFrameWidth; | 181 SkScalar fFrameWidth; |
181 SkScalar fMiterLimit; | 182 SkScalar fMiterLimit; |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
384 friend class BitmapTextBatch; | 385 friend class BitmapTextBatch; |
385 | 386 |
386 #ifdef GR_TEST_UTILS | 387 #ifdef GR_TEST_UTILS |
387 BATCH_TEST_FRIEND(TextBlob); | 388 BATCH_TEST_FRIEND(TextBlob); |
388 #endif | 389 #endif |
389 | 390 |
390 typedef GrTextContext INHERITED; | 391 typedef GrTextContext INHERITED; |
391 }; | 392 }; |
392 | 393 |
393 #endif | 394 #endif |
OLD | NEW |