aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkGeometry.cpp
diff options
context:
space:
mode:
authorGravatar Chris Dalton <csmartdalton@google.com>2017-06-28 16:42:50 -0600
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-06-29 17:34:20 +0000
commit4a80f5eec4cee403b646838734417bbb8c2e07e0 (patch)
tree02b30e8a1f7d522283636ba06d00cf30f4cf206a /src/core/SkGeometry.cpp
parent5fb30566b40c2d936341dd6187c94e5ab00f4c58 (diff)
Decrease the tolerance for classifying degenerate cubics
Bug: skia: Change-Id: I118f52301146ed7a7333d4f6bd2297d500a0df97 Reviewed-on: https://skia-review.googlesource.com/21187 Reviewed-by: Greg Daniel <egdaniel@google.com> Commit-Queue: Chris Dalton <csmartdalton@google.com>
Diffstat (limited to 'src/core/SkGeometry.cpp')
-rw-r--r--src/core/SkGeometry.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/SkGeometry.cpp b/src/core/SkGeometry.cpp
index 2927d185f6..46fd683512 100644
--- a/src/core/SkGeometry.cpp
+++ b/src/core/SkGeometry.cpp
@@ -603,7 +603,7 @@ static void sort_and_orient_t_s(double t[2], double s[2]) {
static SkCubicType classify_cubic(const double d[4], double t[2], double s[2]) {
double tolerance = SkTMax(fabs(d[1]), fabs(d[2]));
tolerance = SkTMax(tolerance, fabs(d[3]));
- tolerance = tolerance * 1e-5;
+ tolerance = tolerance * 1e-4;
if (fabs(d[1]) > tolerance) {
const double discr = 3 * d[2] * d[2] - 4 * d[1] * d[3];
if (discr > 0) {