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

Issue 2697253002: color: Add support for shader generation (Closed)

Created:
3 years, 10 months ago by ccameron
Modified:
3 years, 10 months ago
Reviewers:
hubbe, enne (OOO)
CC:
cc-bugs_chromium.org, chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

color: Add support for shader generation Add a cache of ColorTransform objects to GLRenderer. If the ColorTransform is not a no-op or a LUT, use the pointer to the ColorTransform as part of the ProgramKey. Add methods to ColorTranform to generate shader code, and implement these methods for no-op and matrix-multiply color transform steps. Remove the YUV matrix from ProgramBinding because it is now covered by either the LUT or by the shader generation. Add the behavior that if the destination color space is not specified, then only the YUV to RGB conversion of the source color space is performed, so that we can use this before enabling color conversion at large. BUG=667966 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2697253002 Cr-Commit-Position: refs/heads/master@{#451447} Committed: https://chromium.googlesource.com/chromium/src/+/ecdfdf5b38b44e99023608dac72afa4f6d293d8a

Patch Set 1 #

Patch Set 2 : Rebase #

Total comments: 2

Patch Set 3 : Use ColorTransform in ColorLUTCache #

Patch Set 4 : More bits of precision #

Unified diffs Side-by-side diffs Delta from patch set Stats (+202 lines, -135 lines) Patch
M cc/output/color_lut_cache.h View 1 2 2 chunks +7 lines, -5 lines 0 comments Download
M cc/output/color_lut_cache.cc View 1 2 3 chunks +8 lines, -18 lines 0 comments Download
M cc/output/gl_renderer.h View 1 chunk +6 lines, -0 lines 0 comments Download
M cc/output/gl_renderer.cc View 1 2 6 chunks +22 lines, -54 lines 0 comments Download
M cc/output/program_binding.h View 5 chunks +12 lines, -5 lines 0 comments Download
M cc/output/program_binding.cc View 3 chunks +15 lines, -1 line 0 comments Download
M cc/output/shader.h View 4 chunks +7 lines, -4 lines 0 comments Download
M cc/output/shader.cc View 5 chunks +33 lines, -20 lines 0 comments Download
M ui/gfx/color_transform.h View 1 2 1 chunk +11 lines, -1 line 0 comments Download
M ui/gfx/color_transform.cc View 1 2 3 13 chunks +81 lines, -27 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 21 (14 generated)
ccameron
ptal enne@ for cc/ hubbe@ for ui/color
3 years, 10 months ago (2017-02-16 04:10:57 UTC) #3
enne (OOO)
lgtm
3 years, 10 months ago (2017-02-16 18:45:59 UTC) #4
hubbe
lgtm https://codereview.chromium.org/2697253002/diff/20001/cc/output/program_binding.cc File cc/output/program_binding.cc (right): https://codereview.chromium.org/2697253002/diff/20001/cc/output/program_binding.cc#newcode141 cc/output/program_binding.cc:141: color_conversion_mode_ = COLOR_CONVERSION_MODE_LUT; Can we save the transform ...
3 years, 10 months ago (2017-02-16 20:53:53 UTC) #5
ccameron
Good point-- I had been going back and forth on using the same ColorTransform in ...
3 years, 10 months ago (2017-02-16 22:33:52 UTC) #6
hubbe
lgtm
3 years, 10 months ago (2017-02-16 23:00:33 UTC) #7
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/2697253002/60001
3 years, 10 months ago (2017-02-18 07:35:48 UTC) #18
commit-bot: I haz the power
3 years, 10 months ago (2017-02-18 09:13:51 UTC) #21
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/ecdfdf5b38b44e99023608dac72a...

Powered by Google App Engine
This is Rietveld 408576698