Index: src/gpu/GrSoftwarePathRenderer.cpp |
diff --git a/src/gpu/GrSoftwarePathRenderer.cpp b/src/gpu/GrSoftwarePathRenderer.cpp |
index dc0dbd2816883d0b8e758e41062ad668f628f6f3..ca2ca64db8bb85b09b40447c24e404319c7943f3 100644 |
--- a/src/gpu/GrSoftwarePathRenderer.cpp |
+++ b/src/gpu/GrSoftwarePathRenderer.cpp |
@@ -12,7 +12,13 @@ |
//////////////////////////////////////////////////////////////////////////////// |
bool GrSoftwarePathRenderer::onCanDrawPath(const CanDrawPathArgs& args) const { |
- return SkToBool(fContext); |
+ if (nullptr == fContext) { |
+ return false; |
+ } |
+ if (args.fStroke->isDashed()) { |
+ return false; |
+ } |
+ return true; |
} |
namespace { |
@@ -124,7 +130,7 @@ |
} |
SkAutoTUnref<GrTexture> texture( |
- GrSWMaskHelper::DrawPathMaskToTexture(fContext, *args.fPath, *args.fStyle, |
+ GrSWMaskHelper::DrawPathMaskToTexture(fContext, *args.fPath, *args.fStroke, |
devPathBounds, |
args.fAntiAlias, args.fViewMatrix)); |
if (nullptr == texture) { |