From 29011a2bda560a645e6ddbe162df0856fe259e7b Mon Sep 17 00:00:00 2001 From: Chris Dalton Date: Thu, 28 Sep 2017 12:08:33 -0600 Subject: Remove tolerance form SkClassifyCubic It's too inexact as-is. If the caller wants tolerance they can do their own with knowledge of the pixel grid. The homogeneous math is stable with infinities so it's really unnecessary here. Bug: skia:7073 Change-Id: I4dc34ad96b859a138714b6d4f8804fec4f89f17a Reviewed-on: https://skia-review.googlesource.com/51182 Commit-Queue: Chris Dalton Reviewed-by: Greg Daniel --- tests/GeometryTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/GeometryTest.cpp') diff --git a/tests/GeometryTest.cpp b/tests/GeometryTest.cpp index 4d955b5b13..ad3a6b4baf 100644 --- a/tests/GeometryTest.cpp +++ b/tests/GeometryTest.cpp @@ -215,10 +215,10 @@ static void check_cubic_type(skiatest::Reporter* reporter, static void test_classify_cubic(skiatest::Reporter* reporter) { check_cubic_type(reporter, {{{149.325f, 107.705f}, {149.325f, 103.783f}, {151.638f, 100.127f}, {156.263f, 96.736f}}}, - SkCubicType::kQuadratic); + SkCubicType::kSerpentine); check_cubic_type(reporter, {{{225.694f, 223.15f}, {209.831f, 224.837f}, {195.994f, 230.237f}, {184.181f, 239.35f}}}, - SkCubicType::kQuadratic); + SkCubicType::kSerpentine); check_cubic_type(reporter, {{{4.873f, 5.581f}, {5.083f, 5.2783f}, {5.182f, 4.8593f}, {5.177f, 4.3242f}}}, SkCubicType::kSerpentine); -- cgit v1.2.3