Add glSetScanoutForColorSpaceCHROMIUM GL command

Desktop / Chromium - John Bauman [chromium.org] - 28 July 2017 20:24 EDT

This takes in a pointer to a gfx::ColorSpace, and determines what colorspace is used when displaying the image as an overlay with DirectComposition.

Bug: 654631 Change-Id: I42f7f3721ebdb337d343071c3c6e860422486030

CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel

Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel Change-Id: I42f7f3721ebdb337d343071c3c6e860422486030 Reviewed-on: https://chromium-review.googlesource.com/567580

91f2d57 Add glSetScanoutForColorSpaceCHROMIUM GL command.
cc/output/dc_layer_overlay.cc | 1 +
cc/output/dc_layer_overlay.h | 4 +
cc/output/gl_renderer.cc | 7 +-
cc/output/gl_renderer_unittest.cc | 22 +++-
gpu/GLES2/gl2chromium_autogen.h | 2 +
gpu/command_buffer/build_gles2_cmd_buffer.py | 8 ++
gpu/command_buffer/client/BUILD.gn | 14 +++
gpu/command_buffer/client/gles2_c_lib_autogen.h | 11 ++
.../client/gles2_cmd_helper_autogen.h | 11 ++
gpu/command_buffer/client/gles2_implementation.cc | 32 ++++++
.../client/gles2_implementation_autogen.h | 3 +
gpu/command_buffer/client/gles2_interface.h | 1 +
.../client/gles2_interface_autogen.h | 2 +
.../client/gles2_interface_stub_autogen.h | 2 +
.../client/gles2_interface_stub_impl_autogen.h | 3 +
.../client/gles2_trace_implementation_autogen.h | 2 +
.../gles2_trace_implementation_impl_autogen.h | 8 ++
gpu/command_buffer/cmd_buffer_functions.txt | 2 +
.../common/gles2_cmd_format_autogen.h | 56 ++++++++++
.../common/gles2_cmd_format_test_autogen.h | 17 +++
gpu/command_buffer/common/gles2_cmd_ids_autogen.h | 89 +++++++--------
gpu/command_buffer/service/BUILD.gn | 1 +
gpu/command_buffer/service/gles2_cmd_decoder.cc | 44 ++++++++
.../gles2_cmd_decoder_passthrough_handlers.cc | 7 ++
gpu/ipc/service/direct_composition_surface_win.cc | 52 +++++++--
.../direct_composition_surface_win_unittest.cc | 121 +++++++++++++--------
ui/gl/gl_image.h | 9 ++
27 files changed, 430 insertions(+), 101 deletions(-)

Upstream: git.chromium.org


  • Share