| Index: src/gpu/GrBitmapTextContext.cpp
|
| diff --git a/src/gpu/GrBitmapTextContext.cpp b/src/gpu/GrBitmapTextContext.cpp
|
| index ff81b2d2c20e40744457d930b0f4c59a8b544e8c..488aa137e9a14f5c72033df5d74dedcea9d639ae 100755
|
| --- a/src/gpu/GrBitmapTextContext.cpp
|
| +++ b/src/gpu/GrBitmapTextContext.cpp
|
| @@ -19,6 +19,7 @@
|
| #include "effects/GrCustomCoordsTextureEffect.h"
|
|
|
| #include "SkAutoKern.h"
|
| +#include "SkDraw.h"
|
| #include "SkGlyphCache.h"
|
| #include "SkGpuDevice.h"
|
| #include "SkGr.h"
|
| @@ -28,6 +29,10 @@ static const int kGlyphCoordsAttributeIndex = 1;
|
| SK_CONF_DECLARE(bool, c_DumpFontCache, "gpu.dumpFontCache", false,
|
| "Dump the contents of the font cache before every purge.");
|
|
|
| +bool GrBitmapTextContext::CanDraw(const SkPaint& paint, const SkMatrix& ctm) {
|
| + return !SkDraw::ShouldDrawTextAsPaths(paint, ctm);
|
| +}
|
| +
|
| GrBitmapTextContext::GrBitmapTextContext(GrContext* context,
|
| const GrPaint& grPaint,
|
| const SkPaint& skPaint,
|
|
|