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

Issue 2056413003: Fix a bug in the implementation of DescheduleUntilFinishedCHROMIUM. (Closed)

Created:
4 years, 6 months ago by erikchen
Modified:
4 years, 6 months ago
Reviewers:
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

Fix a bug in the implementation of DescheduleUntilFinishedCHROMIUM. The logic for checking whether an executor was idle was only checking if all of the commands submitted had been processed. This always returns false for DescheduleUntilFinishedCHROMIUM, since there are unprocessed commands. I added the functions HasPollingWork() and PerformPollingWork() to CommandExecutor to separate DescheduleUntilFinishedCHROMIUM work from idle work. BUG=617249 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/63170daf2b1bc70388d39d8b3635058b8269e3ea Cr-Commit-Position: refs/heads/master@{#401525}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Comments from piman. #

Patch Set 3 : Compile error. #

Patch Set 4 : Fix comment. #

Patch Set 5 : compile error on windows. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -3 lines) Patch
M gpu/command_buffer/service/command_executor.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/command_executor.cc View 1 1 chunk +10 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder.h View 1 1 chunk +6 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 1 2 3 4 2 chunks +11 lines, -2 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_mock.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_passthrough.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_passthrough.cc View 1 1 chunk +6 lines, -0 lines 0 comments Download
M gpu/ipc/service/gpu_command_buffer_stub.cc View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download

Messages

Total messages: 22 (10 generated)
erikchen
piman: Please review.
4 years, 6 months ago (2016-06-10 19:45:18 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/2056413003/1
4 years, 6 months ago (2016-06-10 19:47:00 UTC) #5
piman
https://codereview.chromium.org/2056413003/diff/1/gpu/ipc/service/gpu_command_buffer_stub.cc File gpu/ipc/service/gpu_command_buffer_stub.cc (right): https://codereview.chromium.org/2056413003/diff/1/gpu/ipc/service/gpu_command_buffer_stub.cc#newcode310 gpu/ipc/service/gpu_command_buffer_stub.cc:310: is_idle |= !executor_->scheduled(); Trying to think a bit more ...
4 years, 6 months ago (2016-06-10 21:52:27 UTC) #6
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-11 00:16:10 UTC) #8
erikchen
piman: PTAL https://codereview.chromium.org/2056413003/diff/1/gpu/ipc/service/gpu_command_buffer_stub.cc File gpu/ipc/service/gpu_command_buffer_stub.cc (right): https://codereview.chromium.org/2056413003/diff/1/gpu/ipc/service/gpu_command_buffer_stub.cc#newcode310 gpu/ipc/service/gpu_command_buffer_stub.cc:310: is_idle |= !executor_->scheduled(); On 2016/06/10 21:52:27, piman ...
4 years, 6 months ago (2016-06-22 19:23:07 UTC) #10
piman
https://codereview.chromium.org/2056413003/diff/1/gpu/ipc/service/gpu_command_buffer_stub.cc File gpu/ipc/service/gpu_command_buffer_stub.cc (right): https://codereview.chromium.org/2056413003/diff/1/gpu/ipc/service/gpu_command_buffer_stub.cc#newcode310 gpu/ipc/service/gpu_command_buffer_stub.cc:310: is_idle |= !executor_->scheduled(); On 2016/06/22 19:23:07, erikchen wrote: > ...
4 years, 6 months ago (2016-06-22 21:47:41 UTC) #11
erikchen
piman: PTAL
4 years, 6 months ago (2016-06-22 23:57:16 UTC) #14
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2056413003/60001
4 years, 6 months ago (2016-06-22 23:58:00 UTC) #15
piman
LGTM, thanks!
4 years, 6 months ago (2016-06-23 00:02:10 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2056413003/80001
4 years, 6 months ago (2016-06-23 00:30:28 UTC) #19
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 6 months ago (2016-06-23 02:39:43 UTC) #20
commit-bot: I haz the power
4 years, 6 months ago (2016-06-23 02:46:18 UTC) #22
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/63170daf2b1bc70388d39d8b3635058b8269e3ea
Cr-Commit-Position: refs/heads/master@{#401525}

Powered by Google App Engine
This is Rietveld 408576698