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

Issue 2728173004: HDR: Do nonlinear blending in the compositor (Closed)

Created:
3 years, 9 months ago by ccameron
Modified:
3 years, 9 months ago
Reviewers:
hubbe, enne (OOO)
CC:
cc-bugs_chromium.org, chromium-reviews, danakj+watch_chromium.org, darin-cc_chromium.org, hubbe, jam, jbauman+watch_chromium.org, kalyank, piman+watch_chromium.org, sadrul, Ian Vollick
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

HDR: Do nonlinear blending in the compositor Specify a color space for blending to the SurfaceAggregator, in addition to the output color space. If the color space for blending is not the same as the output color space, then add a separate render pass to convert from the blending color space to the output color space. Add a SurfaceAggregator test for this. This is used by HDR output, because the output is in linear space, while web content expects to be blended according in sRGB value space. Add gfx::ColorSpace::CreateExtendedSRGB as the default space in which to do blending for HDR content. Change the meaning of the flag kEnableHDROutput to not enable color aware rasterization, only compositing. Change the GLRenderer to use half-float textures for render passes that are output-ing to HDR color spaces. This can't be tested (yet) because of Mesa limitations. R=enne TBR=sky (for mash) BUG=687357 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2728173004 Cr-Commit-Position: refs/heads/master@{#455274} Committed: https://chromium.googlesource.com/chromium/src/+/3f68a49d843d30417077a09ac37bff4491be4e0c

Patch Set 1 #

Patch Set 2 : Roll in sRGB-extended #

Total comments: 8

Patch Set 3 : Fix windows build #

Unified diffs Side-by-side diffs Delta from patch set Stats (+241 lines, -66 lines) Patch
M cc/output/gl_renderer.cc View 1 2 chunks +7 lines, -3 lines 0 comments Download
M cc/output/gl_renderer_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M cc/surfaces/display.h View 2 chunks +3 lines, -1 line 0 comments Download
M cc/surfaces/display.cc View 2 chunks +8 lines, -5 lines 0 comments Download
M cc/surfaces/display_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M cc/surfaces/surface_aggregator.h View 3 chunks +12 lines, -1 line 0 comments Download
M cc/surfaces/surface_aggregator.cc View 5 chunks +39 lines, -2 lines 0 comments Download
M cc/surfaces/surface_aggregator_unittest.cc View 2 chunks +10 lines, -2 lines 0 comments Download
M components/display_compositor/gpu_root_compositor_frame_sink.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/compositor/gpu_process_transport_factory.h View 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/compositor/gpu_process_transport_factory.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M mash/test/mash_test_suite.cc View 1 chunk +5 lines, -2 lines 0 comments Download
M ui/compositor/compositor.h View 2 chunks +6 lines, -3 lines 0 comments Download
M ui/compositor/compositor.cc View 1 3 chunks +14 lines, -11 lines 0 comments Download
M ui/compositor/test/in_process_context_factory.h View 1 chunk +4 lines, -2 lines 0 comments Download
M ui/gfx/color_space.h View 1 3 chunks +17 lines, -6 lines 0 comments Download
M ui/gfx/color_space.cc View 1 4 chunks +14 lines, -1 line 0 comments Download
M ui/gfx/color_space_win.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M ui/gfx/color_transform.cc View 1 8 chunks +41 lines, -13 lines 0 comments Download
M ui/gfx/color_transform_unittest.cc View 1 2 chunks +51 lines, -7 lines 0 comments Download

Messages

Total messages: 25 (16 generated)
ccameron
ptal
3 years, 9 months ago (2017-03-05 08:00:03 UTC) #5
ccameron
Somewhat enlarging this patch to include adding extended-sRGB support, cause that's the space where we ...
3 years, 9 months ago (2017-03-05 21:08:49 UTC) #9
enne (OOO)
Looks good in general % my own confusion https://codereview.chromium.org/2728173004/diff/20001/cc/output/gl_renderer_unittest.cc File cc/output/gl_renderer_unittest.cc (right): https://codereview.chromium.org/2728173004/diff/20001/cc/output/gl_renderer_unittest.cc#newcode141 cc/output/gl_renderer_unittest.cc:141: gfx::ColorSpace::CreateREC709(), ...
3 years, 9 months ago (2017-03-06 19:56:12 UTC) #10
ccameron
https://codereview.chromium.org/2728173004/diff/20001/cc/surfaces/surface_aggregator.cc File cc/surfaces/surface_aggregator.cc (right): https://codereview.chromium.org/2728173004/diff/20001/cc/surfaces/surface_aggregator.cc#newcode335 cc/surfaces/surface_aggregator.cc:335: CHECK(root_render_pass->transform_to_root_target == gfx::Transform()); On 2017/03/06 19:56:12, enne wrote: > ...
3 years, 9 months ago (2017-03-07 00:13:51 UTC) #11
enne (OOO)
On 2017/03/07 at 00:13:51, ccameron wrote: > https://codereview.chromium.org/2728173004/diff/20001/cc/surfaces/surface_aggregator.cc > File cc/surfaces/surface_aggregator.cc (right): > > https://codereview.chromium.org/2728173004/diff/20001/cc/surfaces/surface_aggregator.cc#newcode335 ...
3 years, 9 months ago (2017-03-07 01:43:18 UTC) #12
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/2728173004/20001
3 years, 9 months ago (2017-03-07 18:49:28 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: win_clang on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_clang/builds/182843)
3 years, 9 months ago (2017-03-07 20:19:47 UTC) #19
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/2728173004/40001
3 years, 9 months ago (2017-03-07 21:21:21 UTC) #22
commit-bot: I haz the power
3 years, 9 months ago (2017-03-07 23:06:46 UTC) #25
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/3f68a49d843d30417077a09ac37b...

Powered by Google App Engine
This is Rietveld 408576698