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

Issue 2021603002: gpu: Add a new extension CHROMIUM_deschedule. (Closed)

Created:
4 years, 6 months ago by erikchen
Modified:
4 years, 6 months ago
Reviewers:
Fady Samuel, piman
CC:
chromium-reviews, piman+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

gpu: Add a new extension CHROMIUM_deschedule. The extension adds a function DescheduleUntilFinishedCHROMIUM that allows clients to throttle themselves. From the perspective of the client, the command performs the equivalent of a service side glFinish. BUG=581777 CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_optional_gpu_tests_rel;tryserver.chromium.mac:mac_optional_gpu_tests_rel;tryserver.chromium.win:win_optional_gpu_tests_rel Committed: https://crrev.com/13338b6e1d09f38f5ba7dbdaca9f765281deba2f Cr-Commit-Position: refs/heads/master@{#397047}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 1

Patch Set 5 : Comments from piman. #

Patch Set 6 : Comments from piman. #

Total comments: 2

Patch Set 7 : Comments from piman. #

Total comments: 2

Patch Set 8 : Beh. #

Patch Set 9 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+501 lines, -66 lines) Patch
M components/mus/gles2/command_buffer_driver.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M components/mus/gles2/command_buffer_driver.cc View 1 2 2 chunks +19 lines, -0 lines 0 comments Download
M content/common/gpu/client/command_buffer_metrics.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M gpu/BUILD.gn View 1 2 1 chunk +1 line, -0 lines 0 comments Download
A gpu/GLES2/extensions/CHROMIUM/CHROMIUM_deschedule.txt View 1 1 chunk +48 lines, -0 lines 0 comments Download
M gpu/GLES2/gl2chromium_autogen.h View 1 chunk +2 lines, -0 lines 0 comments Download
M gpu/GLES2/gl2extchromium.h View 1 1 chunk +9 lines, -0 lines 0 comments Download
M gpu/command_buffer/build_gles2_cmd_buffer.py View 1 2 3 4 1 chunk +8 lines, -0 lines 0 comments Download
M gpu/command_buffer/client/gles2_c_lib_autogen.h View 2 chunks +8 lines, -0 lines 0 comments Download
M gpu/command_buffer/client/gles2_cmd_helper_autogen.h View 1 chunk +8 lines, -0 lines 0 comments Download
M gpu/command_buffer/client/gles2_implementation_autogen.h View 1 chunk +2 lines, -0 lines 0 comments Download
M gpu/command_buffer/client/gles2_implementation_impl_autogen.h View 1 chunk +8 lines, -0 lines 0 comments Download
M gpu/command_buffer/client/gles2_implementation_unittest_autogen.h View 1 chunk +11 lines, -0 lines 0 comments Download
M gpu/command_buffer/client/gles2_interface_autogen.h View 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/client/gles2_interface_stub_autogen.h View 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/client/gles2_interface_stub_impl_autogen.h View 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/client/gles2_trace_implementation_autogen.h View 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/client/gles2_trace_implementation_impl_autogen.h View 1 chunk +6 lines, -0 lines 0 comments Download
M gpu/command_buffer/cmd_buffer_functions.txt View 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/common/constants.h View 1 2 3 4 1 chunk +4 lines, -2 lines 0 comments Download
M gpu/command_buffer/common/gles2_cmd_format_autogen.h View 1 chunk +27 lines, -0 lines 0 comments Download
M gpu/command_buffer/common/gles2_cmd_format_test_autogen.h View 1 chunk +11 lines, -0 lines 0 comments Download
M gpu/command_buffer/common/gles2_cmd_ids_autogen.h View 1 chunk +64 lines, -63 lines 0 comments Download
M gpu/command_buffer/service/feature_info.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder.h View 2 chunks +8 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 1 2 3 4 5 6 7 8 7 chunks +61 lines, -1 line 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_mock.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_passthrough.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_unittest.cc View 1 2 3 4 5 2 chunks +74 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/in_process_command_buffer.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/in_process_command_buffer.cc View 1 2 3 2 chunks +14 lines, -0 lines 0 comments Download
A gpu/command_buffer/tests/gl_deschedule_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +64 lines, -0 lines 0 comments Download
M gpu/gpu.gyp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M gpu/ipc/service/gpu_command_buffer_stub.h View 1 chunk +3 lines, -0 lines 0 comments Download
M gpu/ipc/service/gpu_command_buffer_stub.cc View 2 chunks +21 lines, -0 lines 0 comments Download

Messages

Total messages: 43 (20 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2021603002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2021603002/1
4 years, 6 months ago (2016-05-28 01:02:42 UTC) #3
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2021603002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2021603002/20001
4 years, 6 months ago (2016-05-28 01:14:36 UTC) #5
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_compile_dbg on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_compile_dbg/builds/73478)
4 years, 6 months ago (2016-05-28 01:25:06 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2021603002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2021603002/60001
4 years, 6 months ago (2016-05-31 17:40:03 UTC) #11
erikchen
piman: Please review. While this CL adds a new test, the interesting logic lies in ...
4 years, 6 months ago (2016-05-31 17:55:13 UTC) #14
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-05-31 19:12:07 UTC) #16
piman
https://codereview.chromium.org/2021603002/diff/60001/gpu/command_buffer/service/gles2_cmd_decoder_autogen.h File gpu/command_buffer/service/gles2_cmd_decoder_autogen.h (right): https://codereview.chromium.org/2021603002/diff/60001/gpu/command_buffer/service/gles2_cmd_decoder_autogen.h#newcode4684 gpu/command_buffer/service/gles2_cmd_decoder_autogen.h:4684: return error::kNoError; You need to return kDeferCommandUntilLater here, otherwise ...
4 years, 6 months ago (2016-05-31 19:25:21 UTC) #17
erikchen
piman: PTAL
4 years, 6 months ago (2016-05-31 22:08:26 UTC) #18
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2021603002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2021603002/100001
4 years, 6 months ago (2016-05-31 22:09:18 UTC) #20
piman
One last thing then I think it's good to go. https://codereview.chromium.org/2021603002/diff/100001/gpu/command_buffer/service/command_executor.cc File gpu/command_buffer/service/command_executor.cc (right): https://codereview.chromium.org/2021603002/diff/100001/gpu/command_buffer/service/command_executor.cc#newcode64 ...
4 years, 6 months ago (2016-05-31 22:39:21 UTC) #21
erikchen
https://codereview.chromium.org/2021603002/diff/100001/gpu/command_buffer/service/command_executor.cc File gpu/command_buffer/service/command_executor.cc (right): https://codereview.chromium.org/2021603002/diff/100001/gpu/command_buffer/service/command_executor.cc#newcode64 gpu/command_buffer/service/command_executor.cc:64: error == error::kDeferLaterCommands) { On 2016/05/31 22:39:21, piman OOO ...
4 years, 6 months ago (2016-05-31 22:52:01 UTC) #22
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2021603002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2021603002/120001
4 years, 6 months ago (2016-05-31 22:52:44 UTC) #24
piman
lgtm
4 years, 6 months ago (2016-05-31 23:02:58 UTC) #25
erikchen
fsamuel: Please review components/mus/gles2.
4 years, 6 months ago (2016-05-31 23:18:56 UTC) #27
Fady Samuel
mus lgtm
4 years, 6 months ago (2016-05-31 23:21:37 UTC) #28
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/236548)
4 years, 6 months ago (2016-05-31 23:57:52 UTC) #30
erikchen
https://codereview.chromium.org/2021603002/diff/120001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/2021603002/diff/120001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode13686 gpu/command_buffer/service/gles2_cmd_decoder.cc:13686: return error::kUnknownCommand; I thought I was being clever by ...
4 years, 6 months ago (2016-06-01 00:41:59 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2021603002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2021603002/140001
4 years, 6 months ago (2016-06-01 00:43:03 UTC) #34
piman
https://codereview.chromium.org/2021603002/diff/120001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/2021603002/diff/120001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode13686 gpu/command_buffer/service/gles2_cmd_decoder.cc:13686: return error::kUnknownCommand; On 2016/06/01 00:41:58, erikchen wrote: > I ...
4 years, 6 months ago (2016-06-01 01:35:47 UTC) #35
erikchen
On 2016/06/01 01:35:47, piman OOO back 2016-6-2 wrote: > https://codereview.chromium.org/2021603002/diff/120001/gpu/command_buffer/service/gles2_cmd_decoder.cc > File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): > ...
4 years, 6 months ago (2016-06-01 02:00:12 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2021603002/150001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2021603002/150001
4 years, 6 months ago (2016-06-01 02:00:42 UTC) #40
commit-bot: I haz the power
Committed patchset #9 (id:150001)
4 years, 6 months ago (2016-06-01 03:58:31 UTC) #41
commit-bot: I haz the power
4 years, 6 months ago (2016-06-01 04:00:14 UTC) #43
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/13338b6e1d09f38f5ba7dbdaca9f765281deba2f
Cr-Commit-Position: refs/heads/master@{#397047}

Powered by Google App Engine
This is Rietveld 408576698