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

Unified Diff: include/core/SkPath.h

Issue 1601103006: Add SkPath::isLastContourClosed() (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 11 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 | « no previous file | src/core/SkPath.cpp » ('j') | src/core/SkPath.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkPath.h
diff --git a/include/core/SkPath.h b/include/core/SkPath.h
index 4ce816f92f12d04020b63e98801274ee5a9cd4a1..2b1d3bba212c9ee1d5e3e2f8fad4fb15a5bc9c24 100644
--- a/include/core/SkPath.h
+++ b/include/core/SkPath.h
@@ -187,6 +187,10 @@ public:
return 0 == fPathRef->countVerbs();
}
+ /** Return true if the current contour of this path ends with a close verb.
+ */
+ bool isClosed() const;
reed1 2016/01/20 16:41:41 nit: lets make the name clearer bool isLastContou
fs 2016/01/20 17:24:43 Done.
+
/**
* Returns true if all of the points in this path are finite, meaning there
* are no infinities and no NaNs.
« no previous file with comments | « no previous file | src/core/SkPath.cpp » ('j') | src/core/SkPath.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698