commit | 91982ee8d92a80193915d59760e2ba9ce6f46989 | [log] [tgz] |
---|---|---|
author | Chris Dalton <csmartdalton@google.com> | Fri Jul 14 14:04:52 2017 -0600 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Fri Jul 14 20:34:34 2017 +0000 |
tree | bd1831431ae7a862f6349313f785be4a0e78ed63 | |
parent | 1e0779ba1120182c03f5d52a66df043d70efc376 [diff] |
Fix SkClassifyCubic for near-quadratics Fixes the threshold logic for "0 ~= d1 && 0 ~= d2". Previously, if d1 and d2 were both near zero, but on opposite sides of the threshold, the curve could be misclassified as kCuspAtInfinity and drawn incorrectly. Bug: skia: Change-Id: I65f30ddebf0a4a0b933610d8cc1a2f489efc99e4 Reviewed-on: https://skia-review.googlesource.com/22400 Commit-Queue: Chris Dalton <csmartdalton@google.com> Reviewed-by: Cary Clark <caryclark@google.com>