diff options
author | caryclark <caryclark@google.com> | 2015-08-26 09:04:55 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-08-26 09:04:55 -0700 |
commit | 5cb00a95734143ca068960ead1ae94d0440c61da (patch) | |
tree | 7b633dd3b8acb9c454c117de09a71b8d9c1cd529 /src/utils/SkDashPath.cpp | |
parent | a16af21b17885c517a587482e9062efb99c19306 (diff) |
zero-length cap fix
Re-land; layout tests are suppressed and gm differences are understood.
A merge conflict prevented a automatic reland.
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.
TBR=reed@google.com
BUG=422974
Review URL: https://codereview.chromium.org/1314213002
Diffstat (limited to 'src/utils/SkDashPath.cpp')
-rw-r--r-- | src/utils/SkDashPath.cpp | 2 |
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; |