sk_linear_from_srgb_math
authorMike Klein <mtklein@chromium.org>
Tue, 4 Oct 2016 13:29:32 +0000 (09:29 -0400)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Tue, 4 Oct 2016 14:40:58 +0000 (14:40 +0000)
commit418aa61fea14865c347641acd64df756adaf6e01
tree6d82e7119daab6f826b529af6fb9c9201b5dd20a
parentab87d7abf1df007c90bef2e916294ca325d81c81
sk_linear_from_srgb_math

Looks great (imperceptibly different) but ~10% slower on both ARMv8 and x86-64.  Probably need to hide the table-or-math logic behind Sk4f/Sk8f unless we find faster math.

I do like the new look of the pipeline stages though.  A lot clearer.

BUG=skia:

GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2880

CQ_INCLUDE_TRYBOTS=master.client.skia:Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD-Trybot

Change-Id: I44952237d56ba167445b07d4830eb8959c4d47b7
Reviewed-on: https://skia-review.googlesource.com/2880
Commit-Queue: Mike Klein <mtklein@chromium.org>
Reviewed-by: Matt Sarett <msarett@google.com>
src/core/SkSRGB.h
src/opts/SkRasterPipeline_opts.h