aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/gpu/GrDistanceFieldTextContext.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/gpu/GrDistanceFieldTextContext.h')
-rwxr-xr-xinclude/gpu/GrDistanceFieldTextContext.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/gpu/GrDistanceFieldTextContext.h b/include/gpu/GrDistanceFieldTextContext.h
index 4fde6ceef8..3e00ff2477 100755
--- a/include/gpu/GrDistanceFieldTextContext.h
+++ b/include/gpu/GrDistanceFieldTextContext.h
@@ -17,6 +17,9 @@ class GrTextStrike;
*/
class GrDistanceFieldTextContext : public GrTextContext {
public:
+ GrDistanceFieldTextContext(GrContext*, const GrPaint&, const SkPaint&);
+ virtual ~GrDistanceFieldTextContext();
+
virtual void drawPackedGlyph(GrGlyph::PackedID, GrFixed left, GrFixed top,
GrFontScaler*) SK_OVERRIDE;
@@ -30,10 +33,6 @@ public:
const SkPaint& getSkPaint() { return fSkPaint; }
private:
- GrDistanceFieldTextContext(GrContext*, const GrPaint&, const SkPaint&);
- virtual ~GrDistanceFieldTextContext();
- friend class GrTTextContextManager<GrDistanceFieldTextContext>;
-
GrTextStrike* fStrike;
SkScalar fTextRatio;
@@ -46,6 +45,7 @@ private:
kDefaultRequestedVerts = kDefaultRequestedGlyphs * 4,
};
+ SkPaint fSkPaint;
SkPoint* fVertices;
int32_t fMaxVertices;
GrTexture* fCurrTexture;