Split out GrBitmapTextContext from GrTextContext.
This is a stepping stone to having a variety of different text context types
(bitmaps, distance fields, NV path rendering).
R=bsalomon@google.com
Review URL: https://codereview.chromium.org/27199002
git-svn-id: http://skia.googlecode.com/svn/trunk@11820 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp
index 7bba41f..3c91101 100644
--- a/src/gpu/SkGpuDevice.cpp
+++ b/src/gpu/SkGpuDevice.cpp
@@ -11,7 +11,7 @@
#include "effects/GrSimpleTextureEffect.h"
#include "GrContext.h"
-#include "GrTextContext.h"
+#include "GrBitmapTextContext.h"
#include "SkGrTexturePixelRef.h"
@@ -1743,7 +1743,7 @@
if (!skPaint2GrPaintShader(this, paint, true, &grPaint)) {
return;
}
- GrTextContext context(fContext, grPaint);
+ GrBitmapTextContext context(fContext, grPaint);
myDraw.fProcs = this->initDrawForText(&context);
this->INHERITED::drawText(myDraw, text, byteLength, x, y, paint);
}
@@ -1766,7 +1766,7 @@
if (!skPaint2GrPaintShader(this, paint, true, &grPaint)) {
return;
}
- GrTextContext context(fContext, grPaint);
+ GrBitmapTextContext context(fContext, grPaint);
myDraw.fProcs = this->initDrawForText(&context);
this->INHERITED::drawPosText(myDraw, text, byteLength, pos, constY,
scalarsPerPos, paint);