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

Unified Diff: include/core/SkPath.h

Issue 1491843006: add support for capped hairlines (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: add comment Created 5 years 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 | include/core/SkPathRef.h » ('j') | no next file with comments »
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 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();
}
« no previous file with comments | « no previous file | include/core/SkPathRef.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698