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

Issue 2519603002: Add command buffer support for EXT_sRGB_write_control (Closed)

Created:
4 years, 1 month ago by ccameron
Modified:
4 years ago
Reviewers:
Zhenyao Mo
CC:
chromium-reviews, piman+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add command buffer support for EXT_sRGB_write_control This state is not set in the service side at glEnable/glDisable time. Instead, it is set during framebuffer validation, to accommodate driver bug workarounds on desktop. Move the logic for updating framebuffer SRGB in the decoder to a separate function, GLES2DecoderImpl::UpdateFramebufferSRGB. BUG=655247 CQ_INCLUDE_TRYBOTS=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 Committed: https://crrev.com/a48dcecc89523bf034b2138c308fc959380c8028 Cr-Commit-Position: refs/heads/master@{#435631}

Patch Set 1 #

Patch Set 2 : Clean up initialization #

Patch Set 3 : Do not expose without GL_EXT_sRGB #

Patch Set 4 : And more cleanup #

Total comments: 8

Patch Set 5 : Review feedback #

Total comments: 2

Patch Set 6 : Review feedback #

Patch Set 7 : Remove DCHECK for write-control -- WebGL doesn't have it" #

Patch Set 8 : Fix extension test #

Patch Set 9 : and without breaking compile #

Unified diffs Side-by-side diffs Delta from patch set Stats (+139 lines, -33 lines) Patch
M gpu/command_buffer/build_gles2_cmd_buffer.py View 1 chunk +2 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/context_state.h View 1 2 3 4 1 chunk +5 lines, -1 line 0 comments Download
M gpu/command_buffer/service/context_state.cc View 1 3 chunks +4 lines, -11 lines 0 comments Download
M gpu/command_buffer/service/context_state_autogen.h View 2 chunks +8 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/context_state_impl_autogen.h View 6 chunks +27 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/feature_info.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/service/feature_info.cc View 1 2 3 4 5 2 chunks +18 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/feature_info_unittest.cc View 1 2 3 4 5 chunks +8 lines, -5 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 1 2 3 5 6 5 chunks +41 lines, -13 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_autogen.h View 1 chunk +8 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_unittest_0_autogen.h View 1 chunk +3 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.cc View 1 1 chunk +7 lines, -0 lines 0 comments Download
M gpu/command_buffer/tests/gl_test_utils.cc View 1 2 3 4 5 6 7 8 1 chunk +7 lines, -3 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 57 (41 generated)
ccameron
ptal -- I ended up avoiding doing any substantial refactoring of the way things worked, ...
4 years ago (2016-11-28 07:47:26 UTC) #16
ccameron
post-prandial ping
4 years ago (2016-11-29 17:36:59 UTC) #19
ccameron
ping again
4 years ago (2016-11-30 18:41:14 UTC) #20
Zhenyao Mo
Mostly looks good with some minor comments. Sorry about the delay - I just un-buried ...
4 years ago (2016-11-30 19:31:11 UTC) #21
ccameron
updated -- ptal https://codereview.chromium.org/2519603002/diff/60001/gpu/command_buffer/service/feature_info.cc File gpu/command_buffer/service/feature_info.cc (right): https://codereview.chromium.org/2519603002/diff/60001/gpu/command_buffer/service/feature_info.cc#newcode608 gpu/command_buffer/service/feature_info.cc:608: extensions.Contains("GL_EXT_sRGB_write_control")) { On 2016/11/30 19:31:11, Zhenyao ...
4 years ago (2016-11-30 23:59:44 UTC) #25
Zhenyao Mo
lgtm with one minor issue fixed https://codereview.chromium.org/2519603002/diff/80001/gpu/command_buffer/service/feature_info.cc File gpu/command_buffer/service/feature_info.cc (right): https://codereview.chromium.org/2519603002/diff/80001/gpu/command_buffer/service/feature_info.cc#newcode607 gpu/command_buffer/service/feature_info.cc:607: has_srgb_framebuffer_support = true; ...
4 years ago (2016-12-01 00:05:02 UTC) #26
ccameron
https://codereview.chromium.org/2519603002/diff/80001/gpu/command_buffer/service/feature_info.cc File gpu/command_buffer/service/feature_info.cc (right): https://codereview.chromium.org/2519603002/diff/80001/gpu/command_buffer/service/feature_info.cc#newcode607 gpu/command_buffer/service/feature_info.cc:607: has_srgb_framebuffer_support = true; On 2016/12/01 00:05:02, Zhenyao Mo wrote: ...
4 years ago (2016-12-01 00:39:02 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/2519603002/100001
4 years ago (2016-12-01 00:39:39 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/347578)
4 years ago (2016-12-01 02:00:21 UTC) #32
ccameron
https://codereview.chromium.org/2519603002/diff/60001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/2519603002/diff/60001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode4323 gpu/command_buffer/service/gles2_cmd_decoder.cc:4323: needs_enable_disable_framebuffer_srgb = true; On 2016/11/30 23:59:44, ccameron wrote: > ...
4 years ago (2016-12-01 02:14:34 UTC) #35
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/2519603002/120001
4 years ago (2016-12-01 02:15:21 UTC) #39
commit-bot: I haz the power
Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_swarming_rel/builds/77465)
4 years ago (2016-12-01 03:38:19 UTC) #41
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/2519603002/160001
4 years ago (2016-12-01 17:05:15 UTC) #52
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years ago (2016-12-01 17:10:46 UTC) #54
commit-bot: I haz the power
Patchset 9 (id:??) landed as https://crrev.com/a48dcecc89523bf034b2138c308fc959380c8028 Cr-Commit-Position: refs/heads/master@{#435631}
4 years ago (2016-12-01 17:13:08 UTC) #56
enne (OOO)
4 years ago (2016-12-01 23:50:39 UTC) #57
Message was sent while issue was closed.
A revert of this CL (patchset #9 id:160001) has been created in
https://codereview.chromium.org/2537343008/ by enne@chromium.org.

The reason for reverting is: Breaks gl_tests on GPU FYI bots

BUG=670487.

Powered by Google App Engine
This is Rietveld 408576698