commit | 2139303e4c0a9cbcfac695977a80eb026a9296ab | [log] [tgz] |
---|---|---|
author | brianosman <brianosman@google.com> | Tue May 10 20:29:15 2016 -0700 |
committer | Commit bot <commit-bot@chromium.org> | Tue May 10 20:29:15 2016 -0700 |
tree | 18a2457a15bdee55c2370ea641787819b2fa2442 | |
parent | 1956b4ae1c9a47833b174f31c054d347ea04db09 [diff] |
Make GrGammaEffect have explicit sRGB modes, plus exponential mode. Convert it to a "standard" FP that just transforms the input color. For now, we still infer the sRGB transfer curves from the exponent, but I'm hoping that eventually SkGammas will provide us with the exact curve we're supposed to be applying. In any case, this adds support for doing the inverse transformation, as well, which will be needed in an upcoming Vulkan YUV change, among other things. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1954863002 Review-Url: https://codereview.chromium.org/1954863002