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

Unified Diff: src/gpu/GrTextContext.h

Issue 663423003: Allocate only the vertices we need for text. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Don't force distance fields 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
Index: src/gpu/GrTextContext.h
diff --git a/src/gpu/GrTextContext.h b/src/gpu/GrTextContext.h
index 95344dd39fbea0ee3e7c4095c828ae0c88bc1f63..209c9964345e0af06f0be123ab74f5f2d373b4ae 100644
--- a/src/gpu/GrTextContext.h
+++ b/src/gpu/GrTextContext.h
@@ -57,8 +57,8 @@ protected:
void finish() { fDrawTarget = NULL; }
static GrFontScaler* GetGrFontScaler(SkGlyphCache* cache);
- static void MeasureText(SkGlyphCache* cache, SkDrawCacheProc glyphCacheProc,
- const char text[], size_t byteLength, SkVector* stopVector);
+ static int MeasureText(SkGlyphCache* cache, SkDrawCacheProc glyphCacheProc,
bsalomon 2014/10/22 13:22:55 comment on return value?
jvanverth1 2014/10/23 17:33:44 Done.
+ const char text[], size_t byteLength, SkVector* stopVector);
};
#endif

Powered by Google App Engine
This is Rietveld 408576698