Index: src/gpu/GrAAConvexPathRenderer.cpp |
=================================================================== |
--- src/gpu/GrAAConvexPathRenderer.cpp (revision 13379) |
+++ src/gpu/GrAAConvexPathRenderer.cpp (working copy) |
@@ -605,12 +605,11 @@ |
/////////////////////////////////////////////////////////////////////////////// |
-bool GrAAConvexPathRenderer::canDrawPath(const SkPath& path, |
- const SkStrokeRec& stroke, |
+bool GrAAConvexPathRenderer::canDrawPath(const SkStrokeRec& stroke, |
const GrDrawTarget* target, |
bool antiAlias) const { |
return (target->caps()->shaderDerivativeSupport() && antiAlias && |
- stroke.isFillStyle() && !path.isInverseFillType() && path.isConvex()); |
+ stroke.isFillStyle() && !this->path().isInverseFillType() && this->path().isConvex()); |
} |
namespace { |
@@ -623,12 +622,11 @@ |
}; |
-bool GrAAConvexPathRenderer::onDrawPath(const SkPath& origPath, |
- const SkStrokeRec&, |
+bool GrAAConvexPathRenderer::onDrawPath(const SkStrokeRec&, |
GrDrawTarget* target, |
bool antiAlias) { |
- const SkPath* path = &origPath; |
+ const SkPath* path = &this->path(); |
if (path->isEmpty()) { |
return true; |
} |
@@ -645,7 +643,7 @@ |
// segment representation. |
SkPath tmpPath; |
if (viewMatrix.hasPerspective()) { |
- origPath.transform(viewMatrix, &tmpPath); |
+ this->path().transform(viewMatrix, &tmpPath); |
path = &tmpPath; |
viewMatrix = SkMatrix::I(); |
} |