Index: src/core/SkPath.cpp |
diff --git a/src/core/SkPath.cpp b/src/core/SkPath.cpp |
index 4af2dad5262c97fa15e1717eabd93debfeaa718f..5733aeb58cfc5faf0e80edc145af410aa0ccd8eb 100644 |
--- a/src/core/SkPath.cpp |
+++ b/src/core/SkPath.cpp |
@@ -318,6 +318,13 @@ void SkPath::rewind() { |
this->resetFields(); |
} |
+bool SkPath::isClosed() const { |
+ int verbCount = fPathRef->countVerbs(); |
+ if (0 == verbCount) |
reed1
2016/01/20 16:41:41
nit: skia always uses { }
if (0 == verbCount) {
fs
2016/01/20 17:24:43
Done.
|
+ return false; |
+ return kClose_Verb == fPathRef->atVerb(verbCount - 1); |
+} |
+ |
bool SkPath::isLine(SkPoint line[2]) const { |
int verbCount = fPathRef->countVerbs(); |