aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/utils/SkDashPath.cpp
diff options
context:
space:
mode:
authorGravatar caryclark <caryclark@google.com>2015-08-21 13:27:37 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-08-21 13:27:37 -0700
commitdd3c165828fffb369d0f4b13b48381169a0249a9 (patch)
tree91dd40e798e4a6a982b43e414102d57a7a4809b1 /src/utils/SkDashPath.cpp
parent1cbdcde9116e9efb514236faf8cfa42649a041d1 (diff)
experiment with zero-length round capped line segments
If the endcap is not butt, draw the endcaps even when the line has zero length. If the dash length is zero, generate a zero length line segment. Treat a move followed by a close as a move followed by a zero-length line. R=reed@google.com,schenney@google.com BUG=422974 Review URL: https://codereview.chromium.org/1309753002
Diffstat (limited to 'src/utils/SkDashPath.cpp')
-rw-r--r--src/utils/SkDashPath.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/SkDashPath.cpp b/src/utils/SkDashPath.cpp
index 4b2b33d2c4..de249f6fff 100644
--- a/src/utils/SkDashPath.cpp
+++ b/src/utils/SkDashPath.cpp
@@ -272,7 +272,7 @@ bool SkDashPath::FilterDashPath(SkPath* dst, const SkPath& src, SkStrokeRec* rec
while (distance < length) {
SkASSERT(dlen >= 0);
addedSegment = false;
- if (is_even(index) && dlen > 0 && !skipFirstSegment) {
+ if (is_even(index) && !skipFirstSegment) {
addedSegment = true;
++segCount;