break out of cubic stroker loop on degenerate case
authorcaryclark <caryclark@google.com>
Mon, 23 Feb 2015 20:47:03 +0000 (12:47 -0800)
committerCommit bot <commit-bot@chromium.org>
Mon, 23 Feb 2015 20:47:03 +0000 (12:47 -0800)
commit6df8e3495a677a5df2476d2ff3bbe878fd178e4b
treed54fa706d0eb9bad1656c5071a0cb2569d672c3c
parentf056bd1e01078c02b35d00c22d55ef52b017ef7f
break out of cubic stroker loop on degenerate case

The looper can generate more than one quad, but if any one is degenerate,
give up, but not before generating the state for the line join to
produce the correct end.

Before, the early return allowed the inside path to contain multiple
movetos that caused reversePath to assert.

R=reed@google.com

Review URL: https://codereview.chromium.org/948043002
gm/dashcubics.cpp
src/core/SkStroke.cpp