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

Unified Diff: src/gpu/GrAAHairLinePathRenderer.cpp

Issue 15068008: Remove GrPathCmd (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 7 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.cpp ('k') | src/gpu/GrDefaultPathRenderer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrAAHairLinePathRenderer.cpp
diff --git a/src/gpu/GrAAHairLinePathRenderer.cpp b/src/gpu/GrAAHairLinePathRenderer.cpp
index 4b10cea19b54a5d02f8e812e328e7ce1f9f7e12e..da54ed643c1d99a990791cd19848a78e45a82747 100644
--- a/src/gpu/GrAAHairLinePathRenderer.cpp
+++ b/src/gpu/GrAAHairLinePathRenderer.cpp
@@ -219,11 +219,11 @@ int generate_lines_and_quads(const SkPath& path,
for (;;) {
GrPoint pts[4];
GrPoint devPts[4];
- GrPathCmd cmd = (GrPathCmd)iter.next(pts);
- switch (cmd) {
- case kMove_PathCmd:
+ SkPath::Verb verb = iter.next(pts);
+ switch (verb) {
+ case SkPath::kMove_Verb:
break;
- case kLine_PathCmd:
+ case SkPath::kLine_Verb:
m.mapPoints(devPts, pts, 2);
bounds.setBounds(devPts, 2);
bounds.outset(SK_Scalar1, SK_Scalar1);
@@ -234,7 +234,7 @@ int generate_lines_and_quads(const SkPath& path,
pts[1] = devPts[1];
}
break;
- case kQuadratic_PathCmd:
+ case SkPath::kQuad_Verb:
m.mapPoints(devPts, pts, 3);
bounds.setBounds(devPts, 3);
bounds.outset(SK_Scalar1, SK_Scalar1);
@@ -260,7 +260,7 @@ int generate_lines_and_quads(const SkPath& path,
}
}
break;
- case kCubic_PathCmd:
+ case SkPath::kCubic_Verb:
m.mapPoints(devPts, pts, 4);
bounds.setBounds(devPts, 4);
bounds.outset(SK_Scalar1, SK_Scalar1);
@@ -317,9 +317,9 @@ int generate_lines_and_quads(const SkPath& path,
}
}
break;
- case kClose_PathCmd:
+ case SkPath::kClose_Verb:
break;
- case kEnd_PathCmd:
+ case SkPath::kDone_Verb:
return totalQuadCount;
}
}
« no previous file with comments | « src/gpu/GrAAConvexPathRenderer.cpp ('k') | src/gpu/GrDefaultPathRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698