provide safe exit for runaway intersections
authorcaryclark <caryclark@google.com>
Tue, 6 Sep 2016 16:05:54 +0000 (09:05 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 6 Sep 2016 16:05:55 +0000 (09:05 -0700)
commitef7cee4bbc7c4c1c21b00834de7119634a3c35c9
tree4244bff02c75f91749ac0e306c4200f5b5d021c7
parente97fe839728aa77a413353395b5a4c94c4c1d931
provide safe exit for runaway intersections

Curve intersections with extreme numbers may
cause the intersection template code to loop
forever. Detect this by looking for
marking more spans gone than exist, and
return without any intersections found.

TBR=reed@google.com
BUG=643855
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2310113002

Review-Url: https://codereview.chromium.org/2310113002
src/pathops/SkPathOpsTSect.h
tests/PathOpsOpTest.cpp