commit | c63a0f8fe534eef8d52abc2066126729be9b497c | [log] [tgz] |
---|---|---|
author | caryclark <caryclark@google.com> | Tue Jan 12 07:21:19 2016 -0800 |
committer | Commit bot <commit-bot@chromium.org> | Tue Jan 12 07:21:19 2016 -0800 |
tree | 2f9e298931408e516e2f421e7bc785304f555e25 | |
parent | 32cdc32522bf39a8236880f57ff4ee5b26bdd363 [diff] |
clamp fixed divide to 32 bits In SkEdge::setLine, the numerator is a 26.6 fixed number. SkFixedDiv shifts it up by an additional 16 bits. If the y interval is small, the result overflows 32 bits. The code pins in 64 bit space before down-casting the result. R=reed@google.com BUG=skia:4708 GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1583453002 Review URL: https://codereview.chromium.org/1583453002