commit | 3d4c4a5a9feff961c6ba70443fa40ea1ca0a503e | [log] [tgz] |
---|---|---|
author | mtklein <mtklein@chromium.org> | Thu Mar 26 12:32:29 2015 -0700 |
committer | Commit bot <commit-bot@chromium.org> | Thu Mar 26 12:32:29 2015 -0700 |
tree | 0e400cbdbd0b5dd8eee77d37c6e5373f5f2e1d3e | |
parent | d968a6f29e92230ee118ec9cdfff0329bf83d602 [diff] |
SkPMFloat::trunc() Add and test trunc(), which is what get() used to be before rounding. Using trunc() is a ~40% speedup on our linear gradient bench. #neon #floats BUG=skia:3592 #n5 #n9 CQ_INCLUDE_TRYBOTS=client.skia.android:Test-Android-Nexus5-Adreno330-Arm7-Debug-Trybot;client.skia.android:Test-Android-Nexus9-TegraK1-Arm64-Release-Trybot Review URL: https://codereview.chromium.org/1032243002