commit | 60d2a32b2dbbaabf4a0c133c8d3ff5ad888b8e5e | [log] [tgz] |
---|---|---|
author | mtklein <mtklein@chromium.org> | Tue Mar 03 07:46:15 2015 -0800 |
committer | Commit bot <commit-bot@chromium.org> | Tue Mar 03 07:46:15 2015 -0800 |
tree | b5f30fb2ea6ae04b1f5c60d943274fea2878c466 | |
parent | cff10b21a9934afc540d121b493b204335829589 [diff] |
Make SkPMFloats store floats in [0,255] instead of [0,1]. This pushes the cost of the *255 and *1/255 conversions onto only those code paths that need it. We're not doing it any more efficiently than can be done with Sk4f. In microbenchmark isolation, this is about a 15% speedup. BUG=skia: NOPRESUBMIT=true Review URL: https://codereview.chromium.org/973603002