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

Side by Side Diff: src/gpu/GrAtlasTextBlob.h

Issue 1297053004: Regenerate LCD text blobs if GrPaint's color changes, not SkPaint. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Add comment Created 5 years, 4 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/gpu/GrAtlasTextContext.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 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
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
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
OLDNEW
« no previous file with comments | « no previous file | src/gpu/GrAtlasTextContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698