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

Issue 2677893003: cc: Add color conversion support to all DrawQuad types (Closed)

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

Description

cc: Add color parameters for all quads Rename GLRenderer::program_shadow_ to GLRenderer::current_program_, and use this directly. Change SetUseProgram to take a ProgramKey, and not a Program. Specify a source color space to SetUseProgram. For the moment this is largely ignored, but allow (except behind the video flag). Update tests to build all shaders with color conversion enabled (not actually testing the results yet, since the conversion mechanisms are in flux). Add a RendererSettings::enable_color_correct_rendering flag, and plumb that through with --enable-color-correct-rendering. With that command line flag, all shaders will start using color conversion (though their inputs will not be right). BUG=667966 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2677893003 Cr-Commit-Position: refs/heads/master@{#449844} Committed: https://chromium.googlesource.com/chromium/src/+/5d3f3e2d889382a65bc059b2f8f6d738b3643f46

Patch Set 1 #

Patch Set 2 : Re-add const #

Patch Set 3 : Update w/2681223002 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+315 lines, -286 lines) Patch
M cc/output/gl_renderer.h View 1 2 3 chunks +13 lines, -6 lines 1 comment Download
M cc/output/gl_renderer.cc View 1 2 32 chunks +185 lines, -168 lines 0 comments Download
M cc/output/gl_renderer_draw_cache.h View 1 2 2 chunks +4 lines, -3 lines 0 comments Download
M cc/output/gl_renderer_unittest.cc View 1 2 11 chunks +64 lines, -61 lines 0 comments Download
M cc/output/program_binding.h View 1 2 4 chunks +8 lines, -4 lines 0 comments Download
M cc/output/program_binding.cc View 1 2 3 chunks +5 lines, -3 lines 0 comments Download
M cc/output/renderer_settings.h View 1 2 1 chunk +16 lines, -15 lines 0 comments Download
M cc/output/renderer_settings.cc View 1 2 2 chunks +3 lines, -15 lines 0 comments Download
M cc/output/shader.cc View 1 2 2 chunks +15 lines, -11 lines 0 comments Download
M ui/compositor/compositor.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 18 (13 generated)
ccameron
This should make it reasonably straight-forward to add color conversion to other DrawQuad types. I ...
3 years, 10 months ago (2017-02-06 20:46:54 UTC) #3
ccameron
ptal! It draws color correct pixels (with not-really-correct input from Blink). I'm also working on ...
3 years, 10 months ago (2017-02-10 19:36:28 UTC) #8
enne (OOO)
lgtm https://codereview.chromium.org/2677893003/diff/40001/cc/output/gl_renderer.h File cc/output/gl_renderer.h (right): https://codereview.chromium.org/2677893003/diff/40001/cc/output/gl_renderer.h#newcode312 cc/output/gl_renderer.h:312: const Program* current_program_ = nullptr; I considered suggesting ...
3 years, 10 months ago (2017-02-10 22:40:42 UTC) #9
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/2677893003/40001
3 years, 10 months ago (2017-02-11 04:49:13 UTC) #15
commit-bot: I haz the power
3 years, 10 months ago (2017-02-11 04:56:29 UTC) #18
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/5d3f3e2d889382a65bc059b2f8f6...

Powered by Google App Engine
This is Rietveld 408576698