tweak conservative bounds value to save aberrant cubic
Bug: 844457
Change-Id: Ia3c7c0592df59022cf04f6747b1fe30975431ea4
Reviewed-on: https://skia-review.googlesource.com/129200
Reviewed-by: Cary Clark <caryclark@google.com>
Commit-Queue: Mike Reed <reed@google.com>
diff --git a/tests/ClipCubicTest.cpp b/tests/ClipCubicTest.cpp
index a2024ff..427e753 100644
--- a/tests/ClipCubicTest.cpp
+++ b/tests/ClipCubicTest.cpp
@@ -211,3 +211,14 @@
canvas->clipRect({0, 0, 65, 202});
canvas->drawPath(path, paint);
}
+
+DEF_TEST(cubic_scan_error_crbug_844457, reporter) {
+ auto surface(SkSurface::MakeRasterN32Premul(100, 100));
+
+ SkPath path;
+ path.moveTo(-30/64.0, -31/64.0);
+ path.cubicTo(-31/64.0, -31/64,-31/64.0, -31/64,-31/64.0, 100);
+ path.lineTo(100,100);
+
+ surface->getCanvas()->drawPath(path, SkPaint());
+}