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

Unified Diff: include/core/SkPath.h

Issue 1720953002: allow move/zero-line/close to draw caps (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: remove extra friend Created 4 years, 10 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') | 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 e1bc5e4d856d3fa0ff2bdc46a90362c698058781..8df7633d425f063a415884271685e0a1913feb59 100644
--- a/include/core/SkPath.h
+++ b/include/core/SkPath.h
@@ -1143,6 +1143,10 @@ private:
bool isRectContour(bool allowPartial, int* currVerb, const SkPoint** pts,
bool* isClosed, Direction* direction) const;
+ // called by stroker to see if all points are equal and worthy of a cap
+ // equivalent to a short-circuit version of getBounds().isEmpty()
+ bool isZeroLength() const;
+
/** Returns if the path can return a bound at no cost (true) or will have to
perform some computation (false).
*/
« no previous file with comments | « no previous file | src/core/SkPath.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698