commit | 9c77ea1ea5a1fa26f10d3bf83a6250008af78049 | [log] [tgz] |
---|---|---|
author | Mike Klein <mtklein@chromium.org> | Fri Dec 02 08:29:10 2016 -0500 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Fri Dec 02 14:09:37 2016 +0000 |
tree | f9c28cf0feeec73fc7d315ca09f9e60b43211903 | |
parent | 87185f7539f4e55fbf2e5eea458b8980c34a8d1d [diff] |
SkNf_round, use it in store_565 and store_tables. This gives us a place to bottleneck this sort of conversion. Every time I try to use the rounding float -> int instructions, they're just a little slower than working the 1/2 into the scale with FMA. Weird. Change-Id: I7718112b234b4b38ba6af8fef59a47642021839a Reviewed-on: https://skia-review.googlesource.com/5483 Commit-Queue: Mike Klein <mtklein@chromium.org> Reviewed-by: Matt Sarett <msarett@google.com>