zero-length cap fix
authorcaryclark <caryclark@google.com>
Wed, 26 Aug 2015 16:04:55 +0000 (09:04 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 26 Aug 2015 16:04:55 +0000 (09:04 -0700)
commit5cb00a95734143ca068960ead1ae94d0440c61da
tree7b633dd3b8acb9c454c117de09a71b8d9c1cd529
parenta16af21b17885c517a587482e9062efb99c19306
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
gm/strokes.cpp
include/core/SkPaint.h
src/core/SkPathMeasure.cpp
src/core/SkStroke.cpp
src/utils/SkDashPath.cpp