From 1049f1246e7be4ccb68001361efceb8933e6f81c Mon Sep 17 00:00:00 2001 From: caryclark Date: Mon, 20 Apr 2015 08:31:59 -0700 Subject: Now, path ops natively intersect conics, quads, and cubics in any combination. There are still a class of cubic tests that fail and a handful of undiagnosed failures from skps and fuzz tests, but things are much better overall. Extended tests (150M+) run to completion in release in about 6 minutes; the standard test suite exceeds 100K and finishes in a few seconds on desktops. TBR=reed BUG=skia:3588 Review URL: https://codereview.chromium.org/1037953004 --- tests/PathOpsDCubicTest.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'tests/PathOpsDCubicTest.cpp') diff --git a/tests/PathOpsDCubicTest.cpp b/tests/PathOpsDCubicTest.cpp index 422236de46..d6994943bd 100644 --- a/tests/PathOpsDCubicTest.cpp +++ b/tests/PathOpsDCubicTest.cpp @@ -27,3 +27,17 @@ DEF_TEST(PathOpsDCubic, reporter) { } } } + +static const SkDCubic hullTests[] = { +{{{2.6250000819563866, 2.3750000223517418}, {2.833333432674408, 2.3333333432674408}, {3.1111112236976624, 2.3333333134651184}, {3.4074075222015381, 2.3333332538604736}}}, +}; + +static const size_t hullTests_count = SK_ARRAY_COUNT(hullTests); + +DEF_TEST(PathOpsCubicHull, reporter) { + for (size_t index = 0; index < hullTests_count; ++index) { + const SkDCubic& cubic = hullTests[index]; + char order[4]; + cubic.convexHull(order); + } +} -- cgit v1.2.3