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

Unified Diff: src/core/SkPath.cpp

Issue 1126993003: experimental path-builder Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 3 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/core/SkROPath.h ('k') | src/core/SkPathBuilder.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkPath.cpp
diff --git a/src/core/SkPath.cpp b/src/core/SkPath.cpp
index 8da15804deb69b8defca2c8fb0dbf6f5a64be835..0b24baac75c76c81322abec1fdd6ac4f187b4347 100644
--- a/src/core/SkPath.cpp
+++ b/src/core/SkPath.cpp
@@ -1841,6 +1841,21 @@ SkPath::Verb SkPath::RawIter::next(SkPoint pts[4]) {
return (Verb)verb;
}
+#include "SkPathIter.h"
+
+SkPathIter::SkPathIter(const SkPath& path)
+ : fCurrPts(path.fPathRef->points())
+ , fNextPts(path.fPathRef->points() + 1)
+ , fConicW(path.fPathRef->conicWeights() - 1)
+ , fVerbs(path.fPathRef->verbs())
+ , fStopVerbs(path.fPathRef->verbsMemBegin())
+ , fPrevPtsPerVerb(0)
+{
+ if (fVerbs != fStopVerbs) {
+ SkASSERT(kMove_SkPathVerb == fVerbs[-1]);
+ }
+}
+
///////////////////////////////////////////////////////////////////////////////
/*
« no previous file with comments | « include/core/SkROPath.h ('k') | src/core/SkPathBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698