Some assert fixes for running the Fuzzer sample in GPU mode.
authorsenorblanco <senorblanco@chromium.org>
Fri, 19 Aug 2016 15:07:22 +0000 (08:07 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 19 Aug 2016 15:07:22 +0000 (08:07 -0700)
commitb6a40b83f36b905cf85e2e3dcd88d6423938b505
treee6fa8792901e4511afb3520f5023cd1a1c3b7b38
parente9fd0f8eafb68ff92aab257e9a7429eb29047327
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
src/gpu/GrBlurUtils.cpp
src/gpu/GrPathUtils.cpp