fix fuzzer bug
authorcaryclark <caryclark@google.com>
Thu, 21 Jul 2016 12:48:43 +0000 (05:48 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 21 Jul 2016 12:48:44 +0000 (05:48 -0700)
commit1597628fa38d24f23ad505bfb40e70e7c8617457
tree1404694d03aa87c0d78d73701b710f4ab880f4bc
parentec336deffbf5945f2249f822b1ccc4628a9906a4
fix fuzzer bug

Fix another fuzzer bug.

Some PathOps asserts only make sense if the incoming data is
well-behaved. Well-behaved tests set debugging state to
trigger these additional asserts.

Formalize this by creating macros similar to SkASSERT that
check to see if the assert should be skipped.

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

Review-Url: https://codereview.chromium.org/2169863002
src/pathops/SkDConicLineIntersection.cpp
src/pathops/SkOpCoincidence.cpp
src/pathops/SkOpCoincidence.h
src/pathops/SkOpSegment.cpp
src/pathops/SkOpSegment.h
src/pathops/SkOpSpan.cpp
src/pathops/SkPathOpsTypes.h
tests/PathOpsOpTest.cpp