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

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

Issue 1103243002: fix a bug in scrolling BitmapText gpu cached textblobs (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 7 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.cpp » ('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 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
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
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
OLDNEW
« no previous file with comments | « no previous file | src/gpu/GrAtlasTextContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698