Index: src/gpu/GrStencilAndCoverTextContext.h |
diff --git a/src/gpu/GrStencilAndCoverTextContext.h b/src/gpu/GrStencilAndCoverTextContext.h |
index dc32025501575777d5f2fb65cd7f1ac3d0b3914e..40d38c2375d7a3a64808870fafa62e751b52f6b1 100644 |
--- a/src/gpu/GrStencilAndCoverTextContext.h |
+++ b/src/gpu/GrStencilAndCoverTextContext.h |
@@ -24,18 +24,9 @@ class GrPathRange; |
*/ |
class GrStencilAndCoverTextContext : public GrTextContext { |
public: |
- GrStencilAndCoverTextContext(GrContext*, const SkDeviceProperties&); |
- virtual ~GrStencilAndCoverTextContext(); |
+ static GrStencilAndCoverTextContext* Create(GrContext*, const SkDeviceProperties&); |
- virtual bool canDraw(const SkPaint& paint) SK_OVERRIDE; |
- |
- virtual void drawText(const GrPaint&, const SkPaint&, const char text[], |
- size_t byteLength, |
- SkScalar x, SkScalar y) SK_OVERRIDE; |
- virtual void drawPosText(const GrPaint&, const SkPaint&, |
- const char text[], size_t byteLength, |
- const SkScalar pos[], int scalarsPerPosition, |
- const SkPoint& offset) SK_OVERRIDE; |
+ virtual ~GrStencilAndCoverTextContext(); |
private: |
static const int kGlyphBufferSize = 1024; |
@@ -73,6 +64,18 @@ private: |
SkMatrix fContextInitialMatrix; |
bool fNeedsDeviceSpaceGlyphs; |
+ GrStencilAndCoverTextContext(GrContext*, const SkDeviceProperties&); |
+ |
+ virtual bool canDraw(const SkPaint& paint) SK_OVERRIDE; |
+ |
+ virtual void onDrawText(const GrPaint&, const SkPaint&, const char text[], |
+ size_t byteLength, |
+ SkScalar x, SkScalar y) SK_OVERRIDE; |
+ virtual void onDrawPosText(const GrPaint&, const SkPaint&, |
+ const char text[], size_t byteLength, |
+ const SkScalar pos[], int scalarsPerPosition, |
+ const SkPoint& offset) SK_OVERRIDE; |
+ |
void init(const GrPaint&, const SkPaint&, size_t textByteLength, |
RenderMode, const SkPoint& textTranslate); |
void initGlyphs(SkGlyphCache* cache); |