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

Unified Diff: src/gpu/GrAAConvexPathRenderer.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 | « include/gpu/SkGr.h ('k') | src/gpu/GrAAHairLinePathRenderer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrAAConvexPathRenderer.cpp
diff --git a/src/gpu/GrAAConvexPathRenderer.cpp b/src/gpu/GrAAConvexPathRenderer.cpp
index eb52b61923ef4adc7a925d240e6f0ee8f0076368..a0e72e5e6e676fcfd1860fbaeb77f99f41a94e6b 100644
--- a/src/gpu/GrAAConvexPathRenderer.cpp
+++ b/src/gpu/GrAAConvexPathRenderer.cpp
@@ -243,13 +243,13 @@ bool get_segments(const SkPath& path,
for (;;) {
GrPoint pts[4];
- GrPathCmd cmd = (GrPathCmd)iter.next(pts);
- switch (cmd) {
- case kMove_PathCmd:
+ SkPath::Verb verb = iter.next(pts);
+ switch (verb) {
+ case SkPath::kMove_Verb:
m.mapPoints(pts, 1);
update_degenerate_test(&degenerateData, pts[0]);
break;
- case kLine_PathCmd: {
+ case SkPath::kLine_Verb: {
m.mapPoints(pts + 1, 1);
update_degenerate_test(&degenerateData, pts[1]);
segments->push_back();
@@ -257,7 +257,7 @@ bool get_segments(const SkPath& path,
segments->back().fPts[0] = pts[1];
break;
}
- case kQuadratic_PathCmd:
+ case SkPath::kQuad_Verb:
m.mapPoints(pts + 1, 2);
update_degenerate_test(&degenerateData, pts[1]);
update_degenerate_test(&degenerateData, pts[2]);
@@ -266,7 +266,7 @@ bool get_segments(const SkPath& path,
segments->back().fPts[0] = pts[1];
segments->back().fPts[1] = pts[2];
break;
- case kCubic_PathCmd: {
+ case SkPath::kCubic_Verb: {
m.mapPoints(pts, 4);
update_degenerate_test(&degenerateData, pts[1]);
update_degenerate_test(&degenerateData, pts[2]);
@@ -284,7 +284,7 @@ bool get_segments(const SkPath& path,
}
break;
};
- case kEnd_PathCmd:
+ case SkPath::kDone_Verb:
if (degenerateData.isDegenerate()) {
return false;
} else {
« no previous file with comments | « include/gpu/SkGr.h ('k') | src/gpu/GrAAHairLinePathRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698