Prevent overflow by falling back to non-AA
authorliyuqian <liyuqian@google.com>
Sat, 29 Oct 2016 00:16:53 +0000 (17:16 -0700)
committerCommit bot <commit-bot@chromium.org>
Sat, 29 Oct 2016 00:16:53 +0000 (17:16 -0700)
commita3316adf63ca168c9125df965cfa85bdd7b50a1c
tree5117b4f63d636ce33b29963385feec05a51d1c80
parent1f05f44e8fc0d54afdda04c8e2b846ebad5d9d2f
Prevent overflow by falling back to non-AA

This piece of code is directly copied from our old supersampling AA
code. I didn not preserve this code because it's not triggered by any Skia
tests. However, this will be critical to Chromium's tests as some
websites will generate huge paths!

I'm not so sure whether the long_running_idle_gmail_background_tbmv2 test
failed because of this. But I'm sure that www.nationalgeographic.com from
page_cycler_v2.typical_25 failed because of this.

BUG=chromium:660394

TBR=reed@google.com,caryclark@google.com

GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2461133002

Review-Url: https://codereview.chromium.org/2461133002
src/core/SkScan_AAAPath.cpp