Split GrTextContext into baseclass and subclass
This is a step towards enabling alternate text rendering code paths (GLyphy in particular)
Committed on behalf of baranowski@chromium.org
Review URL: http://codereview.appspot.com/5796071/
git-svn-id: http://skia.googlecode.com/svn/trunk@3412 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/include/gpu/SkGpuDevice.h b/include/gpu/SkGpuDevice.h
index 46c15d6..24e6e5a 100644
--- a/include/gpu/SkGpuDevice.h
+++ b/include/gpu/SkGpuDevice.h
@@ -147,6 +147,8 @@
bool fNeedClear;
bool fNeedPrepareRenderTarget;
+ GrTextContext* fTextContext;
+
// called from rt and tex cons
void initFromRenderTarget(GrContext*, GrRenderTarget*);
@@ -167,6 +169,11 @@
void internalDrawBitmap(const SkDraw&, const SkBitmap&,
const SkIRect&, const SkMatrix&, GrPaint* grPaint);
+ /**
+ * Returns non-initialized instance.
+ */
+ GrTextContext* getTextContext();
+
typedef SkDevice INHERITED;
};