#include "SkBitmapDevice.h"
#include "SkRegion.h"
#include "GrContext.h"
-#include "GrTextContext.h"
struct SkDrawProcs;
struct GrSkDrawProcs;
+class GrTextContext;
+
/**
* Subclass of SkBitmapDevice, which directs all drawing to the GrGpu owned by the
* canvas.
*/
virtual void makeRenderTargetCurrent();
- virtual bool canHandleImageFilter(SkImageFilter*) SK_OVERRIDE;
- virtual bool filterImage(SkImageFilter*, const SkBitmap&, const SkMatrix&,
+ virtual bool canHandleImageFilter(const SkImageFilter*) SK_OVERRIDE;
+ virtual bool filterImage(const SkImageFilter*, const SkBitmap&, const SkMatrix&,
SkBitmap*, SkIPoint*) SK_OVERRIDE;
class SkAutoCachedTexture; // used internally
GrClipData fClipData;
- GrTextContextManager* fTextContextManager;
+ GrTextContext* fMainTextContext;
+ GrTextContext* fFallbackTextContext;
// state for our render-target
GrRenderTarget* fRenderTarget;
bool isOpaque,
Usage usage) SK_OVERRIDE;
- SkDrawProcs* initDrawForText(GrTextContext*);
+ virtual SkSurface* newSurface(const SkImageInfo&) SK_OVERRIDE;
// sets the render target, clip, and matrix on GrContext. Use forceIdenity to override
// SkDraw's matrix and draw in device coords.
int tileSize,
bool bicubic);
- /**
- * Returns non-initialized instance.
- */
- GrTextContext* getTextContext();
-
typedef SkBitmapDevice INHERITED;
};