aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkPath.h
diff options
context:
space:
mode:
authorGravatar Brian Osman <brianosman@google.com>2017-07-10 15:09:26 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-07-10 19:39:28 +0000
commita2318576d6510dc63513ce335ed0027666bd55bf (patch)
tree3e20ab17671506af3e966a2929530934a17cf488 /include/core/SkPath.h
parent6d70274ccf6e7a3729af53e401d2d9e6726035a3 (diff)
Correctly stroke zero length segments in multi-contour paths
Bug: skia: Change-Id: I959287780ef94a258a6746132f3acb9f90e6c6cc Reviewed-on: https://skia-review.googlesource.com/21863 Reviewed-by: Cary Clark <caryclark@google.com> Commit-Queue: Brian Osman <brianosman@google.com>
Diffstat (limited to 'include/core/SkPath.h')
-rw-r--r--include/core/SkPath.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/core/SkPath.h b/include/core/SkPath.h
index b8c921f3ee..b36fa65a6d 100644
--- a/include/core/SkPath.h
+++ b/include/core/SkPath.h
@@ -1177,9 +1177,8 @@ 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;
+ // called by stroker to see if all points (in the last contour) are equal and worthy of a cap
+ bool isZeroLengthSincePoint(int startPtIndex) const;
/** Returns if the path can return a bound at no cost (true) or will have to
perform some computation (false).