some fuzzer fixes
should fix three or four of the PathOp asserts
triggered by the fuzzer tool.
R=kjlubick@google.com
Bug: skia:
Change-Id: I470895addf1e922da6a7c41d44d54eca92e68fb6
Reviewed-on: https://skia-review.googlesource.com/113163
Reviewed-by: Kevin Lubick <kjlubick@google.com>
Commit-Queue: Cary Clark <caryclark@skia.org>
diff --git a/tests/PathOpsConicQuadIntersectionTest.cpp b/tests/PathOpsConicQuadIntersectionTest.cpp
index 99411dc..bdf1d42 100644
--- a/tests/PathOpsConicQuadIntersectionTest.cpp
+++ b/tests/PathOpsConicQuadIntersectionTest.cpp
@@ -15,6 +15,13 @@
ConicPts conic;
QuadPts quad;
} conicQuadTests[] = {
+ {{{{{0.00000000000000000, -1.8135968446731567 },
+ {0.00000000000000000, -1.0033817291259766 },
+ {-0.0073835160583257675, 0.00000000000000000 }}}, 2.26585215e+11f},
+ {{{0.00000000000000000, -1.0000113248825073 },
+ {-2.4824290449032560e-05, -1.0000115633010864 },
+ {-0.0073835160583257675, 0.00000000000000000 }}}},
+
{{{{{494.348663,224.583771}, {494.365143,224.633194}, {494.376404,224.684067}}}, 0.998645842f},
{{{494.30481,224.474213}, {494.334961,224.538284}, {494.355774,224.605927}}}},
@@ -69,5 +76,5 @@
}
DEF_TEST(PathOpsConicQuadIntersectionOneOff, reporter) {
- conicQuadIntersection(reporter, 1);
+ conicQuadIntersection(reporter, 0);
}