Index: src/core/SkPath.cpp |
diff --git a/src/core/SkPath.cpp b/src/core/SkPath.cpp |
index 4af2dad5262c97fa15e1717eabd93debfeaa718f..4c148c5e4a3aea0b08d2d49eaef9c2783c15751c 100644 |
--- a/src/core/SkPath.cpp |
+++ b/src/core/SkPath.cpp |
@@ -318,6 +318,14 @@ void SkPath::rewind() { |
this->resetFields(); |
} |
+bool SkPath::isLastContourClosed() const { |
+ int verbCount = fPathRef->countVerbs(); |
+ if (0 == verbCount) { |
+ return false; |
+ } |
+ return kClose_Verb == fPathRef->atVerb(verbCount - 1); |
+} |
+ |
bool SkPath::isLine(SkPoint line[2]) const { |
int verbCount = fPathRef->countVerbs(); |