Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(96)

Issue 1954863002: Make GrGammaEffect have explicit sRGB modes, plus exponential mode. (Closed)

Created:
4 years, 7 months ago by Brian Osman
Modified:
4 years, 7 months ago
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

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 Committed: https://skia.googlesource.com/skia/+/2139303e4c0a9cbcfac695977a80eb026a9296ab Committed: https://skia.googlesource.com/skia/+/fe4d5d3af53e2c6903abf9bdac2503e3e69ceffe

Patch Set 1 #

Patch Set 2 : Go back to inferring sRGB from exponent (but leave mode intact for future use) #

Patch Set 3 : Remove spurious temporary #

Total comments: 3

Patch Set 4 : enum class #

Patch Set 5 : powf -> pow in shader code #

Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -63 lines) Patch
M src/gpu/GrContext.cpp View 1 2 1 chunk +3 lines, -6 lines 0 comments Download
M src/gpu/effects/GrGammaEffect.h View 1 2 3 1 chunk +15 lines, -10 lines 0 comments Download
M src/gpu/effects/GrGammaEffect.cpp View 1 2 3 4 5 chunks +59 lines, -47 lines 0 comments Download

Messages

Total messages: 27 (15 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1954863002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1954863002/20001
4 years, 7 months ago (2016-05-10 21:36:22 UTC) #3
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-10 21:56:17 UTC) #6
Brian Osman
4 years, 7 months ago (2016-05-10 23:18:16 UTC) #9
bsalomon
lgtm w/ some comments inline https://codereview.chromium.org/1954863002/diff/40001/src/gpu/GrContext.cpp File src/gpu/GrContext.cpp (right): https://codereview.chromium.org/1954863002/diff/40001/src/gpu/GrContext.cpp#newcode553 src/gpu/GrContext.cpp:553: paint.addColorTextureProcessor(src, GrCoordTransform::MakeDivByTextureWHMatrix(src)); I may ...
4 years, 7 months ago (2016-05-11 02:15:01 UTC) #10
Brian Osman
Switched over to enum class. https://codereview.chromium.org/1954863002/diff/40001/src/gpu/GrContext.cpp File src/gpu/GrContext.cpp (right): https://codereview.chromium.org/1954863002/diff/40001/src/gpu/GrContext.cpp#newcode553 src/gpu/GrContext.cpp:553: paint.addColorTextureProcessor(src, GrCoordTransform::MakeDivByTextureWHMatrix(src)); On 2016/05/11 ...
4 years, 7 months ago (2016-05-11 02:49:20 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1954863002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1954863002/60001
4 years, 7 months ago (2016-05-11 02:49:32 UTC) #13
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-11 03:11:03 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1954863002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1954863002/60001
4 years, 7 months ago (2016-05-11 03:28:22 UTC) #18
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://skia.googlesource.com/skia/+/2139303e4c0a9cbcfac695977a80eb026a9296ab
4 years, 7 months ago (2016-05-11 03:29:22 UTC) #20
robertphillips
A revert of this CL (patchset #4 id:60001) has been created in https://codereview.chromium.org/1964943003/ by robertphillips@google.com. ...
4 years, 7 months ago (2016-05-11 12:17:24 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1954863002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1954863002/80001
4 years, 7 months ago (2016-05-11 13:26:26 UTC) #25
commit-bot: I haz the power
4 years, 7 months ago (2016-05-11 13:49:35 UTC) #27
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://skia.googlesource.com/skia/+/fe4d5d3af53e2c6903abf9bdac2503e3e69ceffe

Powered by Google App Engine
This is Rietveld 408576698