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

Unified Diff: src/gpu/GrPathUtils.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/GrDefaultPathRenderer.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « src/gpu/GrDefaultPathRenderer.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698