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/GrPathUtils.cpp b/src/gpu/GrPathUtils.cpp
index d3d784c..f6cd26b 100644
--- a/src/gpu/GrPathUtils.cpp
+++ b/src/gpu/GrPathUtils.cpp
@@ -158,22 +158,22 @@
bool first = true;
SkPath::Iter iter(path, false);
- GrPathCmd cmd;
+ SkPath::Verb verb;
GrPoint pts[4];
- while ((cmd = (GrPathCmd)iter.next(pts)) != kEnd_PathCmd) {
+ while ((verb = iter.next(pts)) != SkPath::kDone_Verb) {
- switch (cmd) {
- case kLine_PathCmd:
+ switch (verb) {
+ case SkPath::kLine_Verb:
pointCount += 1;
break;
- case kQuadratic_PathCmd:
+ case SkPath::kQuad_Verb:
pointCount += quadraticPointCount(pts, tol);
break;
- case kCubic_PathCmd:
+ case SkPath::kCubic_Verb:
pointCount += cubicPointCount(pts, tol);
break;
- case kMove_PathCmd:
+ case SkPath::kMove_Verb:
pointCount += 1;
if (!first) {
++(*subpaths);