| Index: src/gpu/GrBitmapTextContext.h
|
| diff --git a/src/gpu/GrBitmapTextContext.h b/src/gpu/GrBitmapTextContext.h
|
| index a9805cb0fb0c2aa8e833b9c254bd38d6289d671c..7a93820a167e2042470544181b13d4d06f4af049 100644
|
| --- a/src/gpu/GrBitmapTextContext.h
|
| +++ b/src/gpu/GrBitmapTextContext.h
|
| @@ -18,17 +18,9 @@ class GrTextStrike;
|
| */
|
| class GrBitmapTextContext : public GrTextContext {
|
| public:
|
| - GrBitmapTextContext(GrContext*, const SkDeviceProperties&);
|
| - virtual ~GrBitmapTextContext();
|
| + static GrBitmapTextContext* 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 ~GrBitmapTextContext();
|
|
|
| private:
|
| enum {
|
| @@ -49,6 +41,17 @@ private:
|
| // Used to check whether fCachedEffect is still valid.
|
| uint32_t fEffectTextureUniqueID;
|
|
|
| + GrBitmapTextContext(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&);
|
| void appendGlyph(GrGlyph::PackedID, SkFixed left, SkFixed top, GrFontScaler*);
|
| void flush(); // automatically called by destructor
|
|
|