commit | 414c4295f951d43068666b6294df15b2fd2ba85c | [log] [tgz] |
---|---|---|
author | caryclark <caryclark@google.com> | Mon Sep 26 11:03:54 2016 -0700 |
committer | Commit bot <commit-bot@chromium.org> | Mon Sep 26 11:03:54 2016 -0700 |
tree | 4a8abbb094d1cedc8eb1b2a773f6b2f3609f0576 | |
parent | 849f5027e9d3e27c34453966fc3471eb57e76e54 [diff] [blame] |
allow conic chop to fail Fuzzy values may cause the conic chop to fail. Check to see if the values are all finite, and require the caller to do the same. R=reed@google.com BUG=650178 GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2368993002 Review-Url: https://codereview.chromium.org/2368993002
diff --git a/gm/beziereffects.cpp b/gm/beziereffects.cpp index 42be080..3dd4d65 100644 --- a/gm/beziereffects.cpp +++ b/gm/beziereffects.cpp
@@ -353,7 +353,10 @@ if (dst) { SkConic conic; conic.set(src, weight); - conic.chopAt(t, dst); + if (!conic.chopAt(t, dst)) { + dst[0].set(src, weight); + return 1; + } } return 2; }