diff options
author | 2018-05-18 14:07:57 -0400 | |
---|---|---|
committer | 2018-05-18 20:14:54 +0000 | |
commit | 861b52ea98d703786ce485389db07e58759c1792 (patch) | |
tree | 30b6dad226adb3a1fa56bdef1286386df1d88140 /tests/ClipCubicTest.cpp | |
parent | ee84fe1e6484d8fb7b9b1549d9d68c9dbabe3737 (diff) |
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>
Diffstat (limited to 'tests/ClipCubicTest.cpp')
-rw-r--r-- | tests/ClipCubicTest.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ClipCubicTest.cpp b/tests/ClipCubicTest.cpp index a2024ff6cd..427e753322 100644 --- a/tests/ClipCubicTest.cpp +++ b/tests/ClipCubicTest.cpp @@ -211,3 +211,14 @@ DEF_TEST(test_fuzz_crbug_698714, reporter) { 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()); +} |