allow one zero length dash
authorcaryclark <caryclark@google.com>
Fri, 18 Mar 2016 13:04:26 +0000 (06:04 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 18 Mar 2016 13:04:26 +0000 (06:04 -0700)
commiteb75c7db3a7372de68347d0df8d58acebc33a9ad
treed170c50baee0665d75c0eeecbb26eaa1751b4f8d
parent92701ab7836124e8a57eacab17b26c567ad20dd7
allow one zero length dash

If the constructed stroke that represents a dash has a
single dash of length zero, and the end cap is square or
round, draw the cap.

The old code initialized the initial dash length to zero,
making it ambiguous whether the first length is zero or
not.

R=robertphillips@google.com
BUG=583299
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1805963002

Committed: https://skia.googlesource.com/skia/+/5e1a24808415df2748822e8082e21a361362cdfe

Review URL: https://codereview.chromium.org/1805963002
bench/DashBench.cpp
gm/arcto.cpp
gm/dashing.cpp
src/effects/SkDashPathEffect.cpp
src/utils/SkDashPath.cpp
src/utils/SkDashPathPriv.h
tests/DashPathEffectTest.cpp