aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkPath.h
diff options
context:
space:
mode:
authorGravatar caryclark <caryclark@google.com>2016-02-22 12:44:54 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-02-22 12:44:54 -0800
commitd49a86ade0bab1fc3048d6ba5d8536abf25ed77c (patch)
treecc29859cac808f77090602d1555905e0ddd26b85 /include/core/SkPath.h
parente5257bd384a764d0dc1fea3a198ebc9d0101a760 (diff)
allow move/zero-line/close to draw caps
Diffstat (limited to 'include/core/SkPath.h')
-rw-r--r--include/core/SkPath.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/core/SkPath.h b/include/core/SkPath.h
index e1bc5e4d85..8df7633d42 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).
*/