diff options
author | caryclark <caryclark@google.com> | 2016-02-22 12:44:54 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-02-22 12:44:54 -0800 |
commit | d49a86ade0bab1fc3048d6ba5d8536abf25ed77c (patch) | |
tree | cc29859cac808f77090602d1555905e0ddd26b85 /include/core/SkPath.h | |
parent | e5257bd384a764d0dc1fea3a198ebc9d0101a760 (diff) |
allow move/zero-line/close to draw caps
R=fmalita@chromium.org
BUG=skia:4784
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1720953002
Review URL: https://codereview.chromium.org/1720953002
Diffstat (limited to 'include/core/SkPath.h')
-rw-r--r-- | include/core/SkPath.h | 4 |
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). */ |