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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 // all glyph / vertex offsets are into these pools. | 186 // all glyph / vertex offsets are into these pools. |
187 unsigned char* fVertices; | 187 unsigned char* fVertices; |
188 GrGlyph** fGlyphs; | 188 GrGlyph** fGlyphs; |
189 Run* fRuns; | 189 Run* fRuns; |
190 GrMemoryPool* fPool; | 190 GrMemoryPool* fPool; |
191 SkMaskFilter::BlurRec fBlurRec; | 191 SkMaskFilter::BlurRec fBlurRec; |
192 StrokeInfo fStrokeInfo; | 192 StrokeInfo fStrokeInfo; |
193 SkTArray<BigGlyph> fBigGlyphs; | 193 SkTArray<BigGlyph> fBigGlyphs; |
194 Key fKey; | 194 Key fKey; |
195 SkMatrix fViewMatrix; | 195 SkMatrix fViewMatrix; |
196 #ifdef SK_DEBUG | |
197 mutable SkScalar fTotalXError; | |
198 mutable SkScalar fTotalYError; | |
199 #endif | |
200 SkColor fPaintColor; | 196 SkColor fPaintColor; |
201 SkScalar fX; | 197 SkScalar fX; |
202 SkScalar fY; | 198 SkScalar fY; |
203 | 199 |
204 // We can reuse distance field text, but only if the new viewmatrix woul
d not result in | 200 // We can reuse distance field text, but only if the new viewmatrix woul
d not result in |
205 // a mip change. Because there can be multiple runs in a blob, we track
the overall | 201 // a mip change. Because there can be multiple runs in a blob, we track
the overall |
206 // maximum minimum scale, and minimum maximum scale, we can support befo
re we need to regen | 202 // maximum minimum scale, and minimum maximum scale, we can support befo
re we need to regen |
207 SkScalar fMaxMinScale; | 203 SkScalar fMaxMinScale; |
208 SkScalar fMinMaxScale; | 204 SkScalar fMinMaxScale; |
209 int fRunCount; | 205 int fRunCount; |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
362 bool fEnableDFRendering; | 358 bool fEnableDFRendering; |
363 SkAutoTUnref<DistanceAdjustTable> fDistanceAdjustTable; | 359 SkAutoTUnref<DistanceAdjustTable> fDistanceAdjustTable; |
364 | 360 |
365 friend class GrTextBlobCache; | 361 friend class GrTextBlobCache; |
366 friend class BitmapTextBatch; | 362 friend class BitmapTextBatch; |
367 | 363 |
368 typedef GrTextContext INHERITED; | 364 typedef GrTextContext INHERITED; |
369 }; | 365 }; |
370 | 366 |
371 #endif | 367 #endif |
OLD | NEW |