diff options
author | Chris Dalton <csmartdalton@google.com> | 2017-09-28 12:08:33 -0600 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-09-28 18:39:58 +0000 |
commit | 29011a2bda560a645e6ddbe162df0856fe259e7b (patch) | |
tree | dcd41d334c5a9ee7622d5f390af502130f29744f /tests/GeometryTest.cpp | |
parent | a039d3bd06be63da883fcc5ef55efb736d044f6d (diff) |
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 <csmartdalton@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'tests/GeometryTest.cpp')
-rw-r--r-- | tests/GeometryTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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); |