commit | 3d00db39c6637607a2a1f184be2f31e4fe17d9ad | [log] [tgz] |
---|---|---|
author | mtklein <mtklein@chromium.org> | Mon Jan 11 06:16:26 2016 -0800 |
committer | Commit bot <commit-bot@chromium.org> | Mon Jan 11 06:16:26 2016 -0800 |
tree | 5e74d6c753b64b31588c34119185a28f09849949 | |
parent | 4645e4687d39b87a430e925c2d209dca70250652 [diff] |
Might as well inline these premultiplies. We're paying quite a bit of function-call overhead per pixel. On one test image we spend 3.5% of our total time in swizzle_rgba_to_n32_premul() and 8.8% of our total time in SkPreMultiplyARGB(). That turns into just 8.8% of our total time in swizzle_rgba_to_n32_premul() after inlining. That's about a 30% speedup. This will make SIMD procs look worse, so it's nice to land this first. BUG=skia:4767 GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1571923002 Review URL: https://codereview.chromium.org/1571923002