Index: src/gpu/GrDistanceFieldTextContext.cpp |
diff --git a/src/gpu/GrDistanceFieldTextContext.cpp b/src/gpu/GrDistanceFieldTextContext.cpp |
index e372b6cb1bcdf5f2bc83d0252c86c287084f5d13..04503820b96a3373e33dbb21bf99e872fe2b2b33 100755 |
--- a/src/gpu/GrDistanceFieldTextContext.cpp |
+++ b/src/gpu/GrDistanceFieldTextContext.cpp |
@@ -45,7 +45,8 @@ GrDistanceFieldTextContext::~GrDistanceFieldTextContext() { |
} |
bool GrDistanceFieldTextContext::canDraw(const SkPaint& paint) { |
- return !paint.getRasterizer() && !paint.getMaskFilter() && |
+ return paint.isDistanceFieldTextTEMP() && |
+ !paint.getRasterizer() && !paint.getMaskFilter() && |
paint.getStyle() == SkPaint::kFill_Style && |
fContext->getTextTarget()->caps()->shaderDerivativeSupport() && |
!SkDraw::ShouldDrawTextAsPaths(paint, fContext->getMatrix()); |