Index: include/core/SkPath.h |
diff --git a/include/core/SkPath.h b/include/core/SkPath.h |
index 33db8ac24962d24eb276558e5dfd5ad3fbe1c0cd..4ce816f92f12d04020b63e98801274ee5a9cd4a1 100644 |
--- a/include/core/SkPath.h |
+++ b/include/core/SkPath.h |
@@ -956,6 +956,14 @@ public: |
return (Verb) fRawIter.next(pts); |
} |
+ /** Return what the next verb will be, but do not visit the next segment. |
+ |
+ @return The verb for the next segment |
+ */ |
+ Verb peek() const { |
+ return (Verb) fRawIter.peek(); |
+ } |
+ |
SkScalar conicWeight() const { |
return fRawIter.conicWeight(); |
} |