commit | 3f490cc642202c8ab3d51a8ffbd1782c63b9e6a0 | [log] [tgz] |
---|---|---|
author | liyuqian <liyuqian@google.com> | Thu Oct 20 11:23:09 2016 -0700 |
committer | Commit bot <commit-bot@chromium.org> | Thu Oct 20 11:23:10 2016 -0700 |
tree | 763edb05d5466380f7669d812b4b829996272717 | |
parent | c0d550143e813c57aa445f47f788aaf5c8cc2cd7 [diff] |
Make SkFixedRound/Ceil/FloorToFixed as inline func The macros that we were using will return unsigned int32 instead of signed int32 because of the last 0xFFFF0000 mask. That may bring problems if we right shift that result. Special thanks to mtklein@google.com for helping me find out this issue. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2433233003 Review-Url: https://chromiumcodereview.appspot.com/2433233003