experiment with zero-length round capped line segments
authorcaryclark <caryclark@google.com>
Fri, 21 Aug 2015 20:27:37 +0000 (13:27 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 21 Aug 2015 20:27:37 +0000 (13:27 -0700)
commitdd3c165828fffb369d0f4b13b48381169a0249a9
tree91dd40e798e4a6a982b43e414102d57a7a4809b1
parent1cbdcde9116e9efb514236faf8cfa42649a041d1
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
gm/strokes.cpp
include/core/SkPaint.h
src/core/SkPathMeasure.cpp
src/core/SkStroke.cpp
src/utils/SkDashPath.cpp