Index: include/gpu/GrDistanceFieldTextContext.h |
diff --git a/include/gpu/GrBitmapTextContext.h b/include/gpu/GrDistanceFieldTextContext.h |
similarity index 66% |
copy from include/gpu/GrBitmapTextContext.h |
copy to include/gpu/GrDistanceFieldTextContext.h |
index 89672a84d5d13ac073fd72590d8421a18a86fc03..cce77d39c31859462ff312536f1d35b77e27eb0b 100755 |
--- a/include/gpu/GrBitmapTextContext.h |
+++ b/include/gpu/GrDistanceFieldTextContext.h |
@@ -5,27 +5,27 @@ |
* found in the LICENSE file. |
*/ |
-#ifndef GrBitmapTextContext_DEFINED |
-#define GrBitmapTextContext_DEFINED |
+#ifndef GrDistanceFieldTextContext_DEFINED |
+#define GrDistanceFieldTextContext_DEFINED |
#include "GrTextContext.h" |
class GrTextStrike; |
/* |
- * This class implements GrTextContext using standard bitmap fonts |
+ * This class implements GrTextContext using standard DistanceField fonts |
*/ |
-class GrBitmapTextContext : public GrTextContext { |
+class GrDistanceFieldTextContext : public GrTextContext { |
public: |
- GrBitmapTextContext(GrContext*, const GrPaint&); |
- virtual ~GrBitmapTextContext(); |
+ GrDistanceFieldTextContext(GrContext*, const GrPaint&, SkScalar textSize); |
+ virtual ~GrDistanceFieldTextContext(); |
virtual void drawPackedGlyph(GrGlyph::PackedID, GrFixed left, GrFixed top, |
GrFontScaler*) SK_OVERRIDE; |
private: |
- GrContext::AutoMatrix fAutoMatrix; |
- GrTextStrike* fStrike; |
+ GrTextStrike* fStrike; |
+ SkScalar fTextSize; |
void flushGlyphs(); // automatically called by destructor |