| Index: src/gpu/GrPathUtils.cpp
|
| diff --git a/src/gpu/GrPathUtils.cpp b/src/gpu/GrPathUtils.cpp
|
| index d3d784c1caddac7c535b3bd69376c40e6e0a1854..f6cd26b94f3179935289e2295816d5d483de8520 100644
|
| --- a/src/gpu/GrPathUtils.cpp
|
| +++ b/src/gpu/GrPathUtils.cpp
|
| @@ -158,22 +158,22 @@ int GrPathUtils::worstCasePointCount(const SkPath& path, int* subpaths,
|
| 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);
|
|
|