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

Unified Diff: src/gpu/GrTextStrike.h

Issue 41213003: Hook in rough distance field support for fonts (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 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/GrTextStrike.h
diff --git a/src/gpu/GrTextStrike.h b/src/gpu/GrTextStrike.h
index 3917d3775dbe1a39b6a5da0d3629273723b6c063..ba987ddd264b6a1a485a2fc5f6ad922ba3b214b8 100644
--- a/src/gpu/GrTextStrike.h
+++ b/src/gpu/GrTextStrike.h
@@ -62,9 +62,10 @@ private:
GrFontCache* fFontCache;
GrAtlasMgr* fAtlasMgr;
- GrAtlas fAtlas;
-
GrMaskFormat fMaskFormat;
+ bool fUseDistanceField;
+
+ GrAtlas fAtlas;
GrGlyph* generateGlyph(GrGlyph::PackedID packed, GrFontScaler* scaler);
@@ -76,7 +77,7 @@ public:
GrFontCache(GrGpu*);
~GrFontCache();
- inline GrTextStrike* getStrike(GrFontScaler*);
+ inline GrTextStrike* getStrike(GrFontScaler*, bool useDistanceField);
void freeAll();

Powered by Google App Engine
This is Rietveld 408576698