commit | b6a40b83f36b905cf85e2e3dcd88d6423938b505 | [log] [tgz] |
---|---|---|
author | senorblanco <senorblanco@chromium.org> | Fri Aug 19 08:07:22 2016 -0700 |
committer | Commit bot <commit-bot@chromium.org> | Fri Aug 19 08:07:22 2016 -0700 |
tree | e6fa8792901e4511afb3520f5023cd1a1c3b7b38 | |
parent | e9fd0f8eafb68ff92aab257e9a7429eb29047327 [diff] |
Some assert fixes for running the Fuzzer sample in GPU mode. quadraticPointCount, cubicPointCount: passing NaN to GrNextPow2 causes it to assert, so detect that and return the max points per curve instead. Passing a zero scale to GrStyle::applyToPath() makes it assert, so draw nothing (likely what drawing with a zero scale is going to do anyway). BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2257423002 Review-Url: https://codereview.chromium.org/2257423002