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

Unified Diff: src/gpu/GrDistanceFieldTextContext.h

Issue 663423003: Allocate only the vertices we need for text. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Address comments Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/GrBitmapTextContext.cpp ('k') | src/gpu/GrDistanceFieldTextContext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrDistanceFieldTextContext.h
diff --git a/src/gpu/GrDistanceFieldTextContext.h b/src/gpu/GrDistanceFieldTextContext.h
index e0ef7e2e449d822bab7b7486845c8dc5dd9c5099..3eefd103d00da0df91d16c864223b7b71809e855 100644
--- a/src/gpu/GrDistanceFieldTextContext.h
+++ b/src/gpu/GrDistanceFieldTextContext.h
@@ -41,9 +41,10 @@ private:
uint32_t fEffectFlags;
GrTexture* fGammaTexture;
void* fVertices;
- int32_t fMaxVertices;
- GrTexture* fCurrTexture;
int fCurrVertex;
+ int fAllocVertexCount;
+ int fTotalVertexCount;
+ GrTexture* fCurrTexture;
SkRect fVertexBounds;
GrDistanceFieldTextContext(GrContext*, const SkDeviceProperties&, bool enable);
« no previous file with comments | « src/gpu/GrBitmapTextContext.cpp ('k') | src/gpu/GrDistanceFieldTextContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698