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 GrAtlasTextBlob_DEFINED | 8 #ifndef GrAtlasTextBlob_DEFINED |
9 #define GrAtlasTextBlob_DEFINED | 9 #define GrAtlasTextBlob_DEFINED |
10 | 10 |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 // all glyph / vertex offsets are into these pools. | 177 // all glyph / vertex offsets are into these pools. |
178 unsigned char* fVertices; | 178 unsigned char* fVertices; |
179 GrGlyph** fGlyphs; | 179 GrGlyph** fGlyphs; |
180 Run* fRuns; | 180 Run* fRuns; |
181 GrMemoryPool* fPool; | 181 GrMemoryPool* fPool; |
182 SkMaskFilter::BlurRec fBlurRec; | 182 SkMaskFilter::BlurRec fBlurRec; |
183 StrokeInfo fStrokeInfo; | 183 StrokeInfo fStrokeInfo; |
184 SkTArray<BigGlyph> fBigGlyphs; | 184 SkTArray<BigGlyph> fBigGlyphs; |
185 Key fKey; | 185 Key fKey; |
186 SkMatrix fViewMatrix; | 186 SkMatrix fViewMatrix; |
187 SkColor fPaintColor; | 187 GrColor fPaintColor; |
188 SkScalar fX; | 188 SkScalar fX; |
189 SkScalar fY; | 189 SkScalar fY; |
190 | 190 |
191 // We can reuse distance field text, but only if the new viewmatrix would no
t result in | 191 // We can reuse distance field text, but only if the new viewmatrix would no
t result in |
192 // a mip change. Because there can be multiple runs in a blob, we track the
overall | 192 // a mip change. Because there can be multiple runs in a blob, we track the
overall |
193 // maximum minimum scale, and minimum maximum scale, we can support before w
e need to regen | 193 // maximum minimum scale, and minimum maximum scale, we can support before w
e need to regen |
194 SkScalar fMaxMinScale; | 194 SkScalar fMaxMinScale; |
195 SkScalar fMinMaxScale; | 195 SkScalar fMinMaxScale; |
196 int fRunCount; | 196 int fRunCount; |
197 uint8_t fTextType; | 197 uint8_t fTextType; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 void setHasDistanceField() { fTextType |= kHasDistanceField_TextType; } | 234 void setHasDistanceField() { fTextType |= kHasDistanceField_TextType; } |
235 void setHasBitmap() { fTextType |= kHasBitmap_TextType; } | 235 void setHasBitmap() { fTextType |= kHasBitmap_TextType; } |
236 | 236 |
237 #ifdef CACHE_SANITY_CHECK | 237 #ifdef CACHE_SANITY_CHECK |
238 static void AssertEqual(const GrAtlasTextBlob&, const GrAtlasTextBlob&); | 238 static void AssertEqual(const GrAtlasTextBlob&, const GrAtlasTextBlob&); |
239 size_t fSize; | 239 size_t fSize; |
240 #endif | 240 #endif |
241 }; | 241 }; |
242 | 242 |
243 #endif | 243 #endif |
OLD | NEW |