Index: src/gpu/GrSoftwarePathRenderer.cpp |
diff --git a/src/gpu/GrSoftwarePathRenderer.cpp b/src/gpu/GrSoftwarePathRenderer.cpp |
index 466ad817793a19aadff9613f2c52f9fcac02f8ce..0cc3de7a5ea70a7b63b577303a28923973c1e8bb 100644 |
--- a/src/gpu/GrSoftwarePathRenderer.cpp |
+++ b/src/gpu/GrSoftwarePathRenderer.cpp |
@@ -15,12 +15,14 @@ bool GrSoftwarePathRenderer::canDrawPath(const GrDrawTarget*, |
const GrPipelineBuilder*, |
const SkMatrix& viewMatrix, |
const SkPath&, |
- const SkStrokeRec&, |
+ const GrStrokeInfo& stroke, |
bool antiAlias) const { |
if (NULL == fContext) { |
return false; |
} |
- |
+ if (stroke.isDashed()) { |
+ return false; |
+ } |
return true; |
} |
@@ -28,7 +30,7 @@ GrPathRenderer::StencilSupport |
GrSoftwarePathRenderer::onGetStencilSupport(const GrDrawTarget*, |
const GrPipelineBuilder*, |
const SkPath&, |
- const SkStrokeRec&) const { |
+ const GrStrokeInfo&) const { |
return GrPathRenderer::kNoSupport_StencilSupport; |
} |
@@ -119,9 +121,8 @@ bool GrSoftwarePathRenderer::onDrawPath(GrDrawTarget* target, |
GrColor color, |
const SkMatrix& viewMatrix, |
const SkPath& path, |
- const SkStrokeRec& stroke, |
+ const GrStrokeInfo& stroke, |
bool antiAlias) { |
- |
if (NULL == fContext) { |
return false; |
} |
@@ -137,7 +138,7 @@ bool GrSoftwarePathRenderer::onDrawPath(GrDrawTarget* target, |
} |
SkAutoTUnref<GrTexture> texture( |
- GrSWMaskHelper::DrawPathMaskToTexture(fContext, path, stroke, |
+ GrSWMaskHelper::DrawPathMaskToTexture(fContext, path, stroke.getStrokeRec(), |
devPathBounds, |
antiAlias, &viewMatrix)); |
if (NULL == texture) { |