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

Issue 2180803005: Add color gamut xform helpers to GrGLSLShaderBuilder (Closed)

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

Description

Add color gamut xform helpers to GrGLSLShaderBuilder New helper functions inject the necessary shader function. Texture lookup functions can now insert the gamut xform at the appropriate place, too. As written, could be used to transform non-texture colors (e.g. vertex colors) as well. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2180803005 Committed: https://skia.googlesource.com/skia/+/77320dbabcddf05c0a1489eaf1f496729dc8de0e

Patch Set 1 #

Patch Set 2 : Handle premul, clamping, etc... #

Patch Set 3 : Use new helpers for bicubic #

Patch Set 4 : Rebase #

Patch Set 5 : Fix GrSimpleTextureEffect and its uses, too #

Patch Set 6 : Require alpha type for xform, not finished #

Patch Set 7 : Fix trailing whitespace #

Patch Set 8 : Rebase #

Patch Set 9 : Supply alpha type from texture maker/adjuster #

Patch Set 10 : Generate correct code for premul vs. not. API changes to facilitate. #

Patch Set 11 : Rebase #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+166 lines, -27 lines) Patch
M include/gpu/GrColorSpaceXform.h View 1 2 3 4 5 6 7 8 9 2 chunks +20 lines, -2 lines 1 comment Download
M src/gpu/GrColorSpaceXform.cpp View 1 2 3 4 5 2 chunks +5 lines, -3 lines 0 comments Download
M src/gpu/GrTextureParamsAdjuster.cpp View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -2 lines 0 comments Download
M src/gpu/SkGpuDevice.cpp View 1 2 3 4 5 6 7 8 9 10 2 chunks +7 lines, -2 lines 0 comments Download
M src/gpu/effects/GrBicubicEffect.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -2 lines 0 comments Download
M src/gpu/effects/GrSimpleTextureEffect.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +26 lines, -3 lines 0 comments Download
M src/gpu/effects/GrSingleTextureEffect.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M src/gpu/glsl/GrGLSLColorSpaceXformHelper.h View 1 2 3 4 5 6 7 8 9 2 chunks +6 lines, -2 lines 0 comments Download
M src/gpu/glsl/GrGLSLShaderBuilder.h View 1 2 3 4 5 6 7 8 9 3 chunks +16 lines, -2 lines 0 comments Download
M src/gpu/glsl/GrGLSLShaderBuilder.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +70 lines, -7 lines 0 comments Download
M src/image/SkImageShader.cpp View 1 2 3 4 5 1 chunk +6 lines, -2 lines 0 comments Download

Messages

Total messages: 31 (18 generated)
Brian Osman
Code I wrote before vacation - refactors the color xform shader support to handle premul, ...
4 years, 4 months ago (2016-08-12 19:27:29 UTC) #6
bsalomon
looks good but should we pass a param to know whether the input color is ...
4 years, 4 months ago (2016-08-12 21:34:06 UTC) #9
Brian Osman
On 2016/08/12 21:34:06, bsalomon wrote: > looks good but should we pass a param to ...
4 years, 4 months ago (2016-08-16 16:18:54 UTC) #10
Brian Osman
Change from before the Android performance push. This adds gamut transformation to more of the ...
4 years, 3 months ago (2016-08-31 13:14:10 UTC) #15
Brian Osman
On 2016/08/31 13:14:10, Brian Osman wrote: > Change from before the Android performance push. This ...
4 years, 3 months ago (2016-08-31 13:15:56 UTC) #16
bsalomon
On 2016/08/31 13:15:56, Brian Osman wrote: > On 2016/08/31 13:14:10, Brian Osman wrote: > > ...
4 years, 3 months ago (2016-08-31 17:45:47 UTC) #17
Brian Osman
On 2016/08/31 17:45:47, bsalomon wrote: > On 2016/08/31 13:15:56, Brian Osman wrote: > > On ...
4 years, 3 months ago (2016-08-31 17:49:53 UTC) #18
Brian Osman
On 2016/08/31 17:49:53, Brian Osman wrote: > On 2016/08/31 17:45:47, bsalomon wrote: > > On ...
4 years, 3 months ago (2016-08-31 17:50:34 UTC) #19
Brian Osman
Now that I've landed the gamut GM, this CL demonstrably fixes gamut conversion in several ...
4 years, 3 months ago (2016-09-07 14:26:38 UTC) #23
bsalomon
lgtm https://codereview.chromium.org/2180803005/diff/200001/include/gpu/GrColorSpaceXform.h File include/gpu/GrColorSpaceXform.h (right): https://codereview.chromium.org/2180803005/diff/200001/include/gpu/GrColorSpaceXform.h#newcode31 include/gpu/GrColorSpaceXform.h:31: * GrGLSLFragmentProcessor::GenKey() must call this and include the ...
4 years, 3 months ago (2016-09-07 14:46:37 UTC) #24
Brian Osman
On 2016/09/07 14:46:37, bsalomon wrote: > lgtm > > https://codereview.chromium.org/2180803005/diff/200001/include/gpu/GrColorSpaceXform.h > File include/gpu/GrColorSpaceXform.h (right): > ...
4 years, 3 months ago (2016-09-07 15:07:59 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2180803005/200001
4 years, 3 months ago (2016-09-07 15:08:15 UTC) #29
commit-bot: I haz the power
4 years, 3 months ago (2016-09-07 15:09:13 UTC) #31
Message was sent while issue was closed.
Committed patchset #11 (id:200001) as
https://skia.googlesource.com/skia/+/77320dbabcddf05c0a1489eaf1f496729dc8de0e

Powered by Google App Engine
This is Rietveld 408576698