| Index: src/gpu/GrStencilAndCoverTextContext.cpp
|
| diff --git a/src/gpu/GrStencilAndCoverTextContext.cpp b/src/gpu/GrStencilAndCoverTextContext.cpp
|
| index 1941fa7afc7db8d4ebad44059d9137eaab4fe6b7..b53ff797fa4718616fbab42936faf96eb4ba965b 100644
|
| --- a/src/gpu/GrStencilAndCoverTextContext.cpp
|
| +++ b/src/gpu/GrStencilAndCoverTextContext.cpp
|
| @@ -6,6 +6,7 @@
|
| */
|
|
|
| #include "GrStencilAndCoverTextContext.h"
|
| +#include "GrBitmapTextContext.h"
|
| #include "GrDrawTarget.h"
|
| #include "GrGpu.h"
|
| #include "GrPath.h"
|
| @@ -25,6 +26,15 @@ GrStencilAndCoverTextContext::GrStencilAndCoverTextContext(
|
| , fPendingGlyphCount(0) {
|
| }
|
|
|
| +GrStencilAndCoverTextContext* GrStencilAndCoverTextContext::Create(GrContext* context,
|
| + const SkDeviceProperties& props) {
|
| + GrStencilAndCoverTextContext* textContext = SkNEW_ARGS(GrStencilAndCoverTextContext,
|
| + (context, props));
|
| + textContext->fFallbackTextContext = GrBitmapTextContext::Create(context, props);
|
| +
|
| + return textContext;
|
| +}
|
| +
|
| GrStencilAndCoverTextContext::~GrStencilAndCoverTextContext() {
|
| }
|
|
|
| @@ -52,7 +62,7 @@ bool GrStencilAndCoverTextContext::canDraw(const SkPaint& paint) {
|
| return rec.getFormat() != SkMask::kARGB32_Format;
|
| }
|
|
|
| -void GrStencilAndCoverTextContext::drawText(const GrPaint& paint,
|
| +void GrStencilAndCoverTextContext::onDrawText(const GrPaint& paint,
|
| const SkPaint& skPaint,
|
| const char text[],
|
| size_t byteLength,
|
| @@ -142,7 +152,7 @@ void GrStencilAndCoverTextContext::drawText(const GrPaint& paint,
|
| this->finish();
|
| }
|
|
|
| -void GrStencilAndCoverTextContext::drawPosText(const GrPaint& paint,
|
| +void GrStencilAndCoverTextContext::onDrawPosText(const GrPaint& paint,
|
| const SkPaint& skPaint,
|
| const char text[],
|
| size_t byteLength,
|
|
|