Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(242)

Unified Diff: src/gpu/GrAAConvexPathRenderer.cpp

Issue 142543007: Revert of r13384 (Stateful PathRenderer implementation) (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/GrAAConvexPathRenderer.h ('k') | src/gpu/GrAAHairLinePathRenderer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrAAConvexPathRenderer.cpp
===================================================================
--- src/gpu/GrAAConvexPathRenderer.cpp (revision 13407)
+++ src/gpu/GrAAConvexPathRenderer.cpp (working copy)
@@ -605,11 +605,12 @@
///////////////////////////////////////////////////////////////////////////////
-bool GrAAConvexPathRenderer::canDrawPath(const SkStrokeRec& stroke,
+bool GrAAConvexPathRenderer::canDrawPath(const SkPath& path,
+ const SkStrokeRec& stroke,
const GrDrawTarget* target,
bool antiAlias) const {
return (target->caps()->shaderDerivativeSupport() && antiAlias &&
- stroke.isFillStyle() && !this->path().isInverseFillType() && this->path().isConvex());
+ stroke.isFillStyle() && !path.isInverseFillType() && path.isConvex());
}
namespace {
@@ -622,11 +623,12 @@
};
-bool GrAAConvexPathRenderer::onDrawPath(const SkStrokeRec&,
+bool GrAAConvexPathRenderer::onDrawPath(const SkPath& origPath,
+ const SkStrokeRec&,
GrDrawTarget* target,
bool antiAlias) {
- const SkPath* path = &this->path();
+ const SkPath* path = &origPath;
if (path->isEmpty()) {
return true;
}
@@ -643,7 +645,7 @@
// segment representation.
SkPath tmpPath;
if (viewMatrix.hasPerspective()) {
- this->path().transform(viewMatrix, &tmpPath);
+ origPath.transform(viewMatrix, &tmpPath);
path = &tmpPath;
viewMatrix = SkMatrix::I();
}
« no previous file with comments | « src/gpu/GrAAConvexPathRenderer.h ('k') | src/gpu/GrAAHairLinePathRenderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698