Use sk_srgb_to_linear_trunc in SkColorXform_opts
authormsarett <msarett@google.com>
Tue, 26 Jul 2016 01:58:11 +0000 (18:58 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 26 Jul 2016 01:58:11 +0000 (18:58 -0700)
commita18c3b8306c08619ad40fe26122462d4c7a9059d
treed200518e6ff083a535d9d1d1ec290dd203ba5425
parent3418c0e797e2ee841d1c031ca9d7a5ba73205f51
Use sk_srgb_to_linear_trunc in SkColorXform_opts

This gives us a little more control over instruction order, allowing
us to pipeline the muls and get better performance.  Technically,
clang should be able to do this for us anyway...

Performance on HP z620 (201295.jpg):
toSRGB: 371us -> 356us

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2175413002
CQ_INCLUDE_TRYBOTS=master.client.skia:Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD-Trybot

Review-Url: https://codereview.chromium.org/2175413002
src/opts/SkColorXform_opts.h