aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrTextStrike.h
diff options
context:
space:
mode:
authorGravatar jvanverth@google.com <jvanverth@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-11-11 20:54:09 +0000
committerGravatar jvanverth@google.com <jvanverth@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-11-11 20:54:09 +0000
commitd830d13c27437b4677a4a1abfa866d98dc2d2ab9 (patch)
tree777d1614d3956bb174ac65590b2dd0320f656fe8 /src/gpu/GrTextStrike.h
parent05edd02a7c3d78fe11bbaec83aaa63b2823cce42 (diff)
Hook in rough distance field support for fonts
R=bsalomon@google.com Review URL: https://codereview.chromium.org/41213003 git-svn-id: http://skia.googlecode.com/svn/trunk@12229 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu/GrTextStrike.h')
-rw-r--r--src/gpu/GrTextStrike.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/gpu/GrTextStrike.h b/src/gpu/GrTextStrike.h
index 26a36320fa..422ae0c379 100644
--- a/src/gpu/GrTextStrike.h
+++ b/src/gpu/GrTextStrike.h
@@ -61,9 +61,12 @@ private:
GrFontCache* fFontCache;
GrAtlasMgr* fAtlasMgr;
- GrAtlas fAtlas;
-
GrMaskFormat fMaskFormat;
+#if SK_DISTANCEFIELD_FONTS
+ bool fUseDistanceField;
+#endif
+
+ GrAtlas fAtlas;
GrGlyph* generateGlyph(GrGlyph::PackedID packed, GrFontScaler* scaler);
@@ -75,7 +78,11 @@ public:
GrFontCache(GrGpu*);
~GrFontCache();
+#if SK_DISTANCEFIELD_FONTS
+ inline GrTextStrike* getStrike(GrFontScaler*, bool useDistanceField);
+#else
inline GrTextStrike* getStrike(GrFontScaler*);
+#endif
void freeAll();