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