aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkScan_Path.cpp
diff options
context:
space:
mode:
authorGravatar Mike Reed <reed@google.com>2018-05-23 08:30:04 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-05-23 13:26:41 +0000
commit3087c1f382f1cd547598dc75f47ccbc8fe1e6e0f (patch)
tree492d99dfb7ad635249286f5299cdcd145489242b /src/core/SkScan_Path.cpp
parentb4303caa98d23279a3b5204ac0adbc28d4e33682 (diff)
tweak tolerance again for cubics
Bug: 845489 Bug: skia:7995 Change-Id: I05554377bd5630b7134864b6db282358613f1030 Reviewed-on: https://skia-review.googlesource.com/129721 Reviewed-by: Cary Clark <caryclark@google.com> Commit-Queue: Mike Reed <reed@google.com>
Diffstat (limited to 'src/core/SkScan_Path.cpp')
-rw-r--r--src/core/SkScan_Path.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/SkScan_Path.cpp b/src/core/SkScan_Path.cpp
index 1854a7edd7..90a2230526 100644
--- a/src/core/SkScan_Path.cpp
+++ b/src/core/SkScan_Path.cpp
@@ -567,7 +567,9 @@ static bool clip_to_limit(const SkRegion& orig, SkRegion* reduced) {
//
// This value has been determined trial and error: pick the smallest value (after the 0.5) that
// fixes any problematic cases (e.g. crbug.com/844457)
-static const double kConservativeRoundBias = 0.5 + 1.0 / SK_FDot6One;
+// NOTE: cubics appear to be the main reason for needing this slop. If we could (perhaps) have a
+// more accurate walker for cubics, we may be able to reduce this fudge factor.
+static const double kConservativeRoundBias = 0.5 + 1.5 / SK_FDot6One;
/**
* Round the value down. This is used to round the top and left of a rectangle,