commit | 2c3eca38c9f74be9d91f467540feb586a0e941ca | [log] [tgz] |
---|---|---|
author | msarett <msarett@google.com> | Mon May 09 14:27:48 2016 -0700 |
committer | Commit bot <commit-bot@chromium.org> | Mon May 09 14:27:49 2016 -0700 |
tree | 85c1634f6612b66814aa92156e14f17f626c1a77 | |
parent | 05c987cee37ff9fcc7d42e73ec2909a55cd48e01 [diff] |
Approximate common gamma tables as single values This should improve performance of gamma conversion in software (we can use vector math instead of table look ups). Additionally this allows us to quickly and easily identify sRGB-like gammas. On gpu, identifying sRGB gamma improves performance/memory, because the hardware may support gamma conversion. This will help us identify situations where gamma conversion is not necessary. Ex: sRGB input -> sRGB display BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1950183006 Review-Url: https://codereview.chromium.org/1950183006