From 55011038816a3fc7f0c0a39d482fb85347cc2e78 Mon Sep 17 00:00:00 2001 From: reed Date: Thu, 26 Mar 2015 09:10:22 -0700 Subject: use new faster/vector impl for chopping conics BUG=skia: Review URL: https://codereview.chromium.org/1035943002 --- tests/GeometryTest.cpp | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'tests/GeometryTest.cpp') diff --git a/tests/GeometryTest.cpp b/tests/GeometryTest.cpp index 846afaed2d..0ec7d68abf 100644 --- a/tests/GeometryTest.cpp +++ b/tests/GeometryTest.cpp @@ -83,21 +83,6 @@ static void test_conic_eval_tan(skiatest::Reporter* reporter, const SkConic& con check_pairs(reporter, 0, t, "conic-tan", v0.fX, v0.fY, v1.fX, v1.fY); } -static void test_conic_chop_half(skiatest::Reporter* reporter, const SkConic& conic) { - SkConic dst0[2], dst1[2]; - conic.chop(dst0); - conic.chop2(dst1); - - for (int i = 0; i < 2; ++i) { - REPORTER_ASSERT(reporter, dst0[i].fW == dst1[i].fW); - for (int j = 0; j < 3; ++j) { - check_pairs(reporter, j, 0.5f, "conic-chop", - dst0[i].fPts[j].fX, dst0[i].fPts[j].fY, - dst0[i].fPts[j].fX, dst1[i].fPts[j].fY); - } - } -} - static void test_conic(skiatest::Reporter* reporter) { SkRandom rand; for (int i = 0; i < 1000; ++i) { @@ -108,7 +93,6 @@ static void test_conic(skiatest::Reporter* reporter) { for (int k = 0; k < 10; ++k) { SkScalar w = rand.nextUScalar1() * 2; SkConic conic(pts, w); - test_conic_chop_half(reporter, conic); const SkScalar dt = SK_Scalar1 / 128; SkScalar t = dt; -- cgit v1.2.3