Remove GrPathCmd
R=reed@google.com
Review URL: https://codereview.chromium.org/15068008
git-svn-id: http://skia.googlecode.com/svn/trunk@9097 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/gpu/GrAAHairLinePathRenderer.cpp b/src/gpu/GrAAHairLinePathRenderer.cpp
index 4b10cea..da54ed6 100644
--- a/src/gpu/GrAAHairLinePathRenderer.cpp
+++ b/src/gpu/GrAAHairLinePathRenderer.cpp
@@ -219,11 +219,11 @@
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 @@
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 @@
}
}
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 @@
}
}
break;
- case kClose_PathCmd:
+ case SkPath::kClose_Verb:
break;
- case kEnd_PathCmd:
+ case SkPath::kDone_Verb:
return totalQuadCount;
}
}