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

Issue 1315713007: gpu: Reduce GL context switches used to check pending queries. (Closed)

Created:
5 years, 3 months ago by reveman
Modified:
5 years, 3 months ago
Reviewers:
dshwang, no sievers, boliu
CC:
chromium-reviews, darin-cc_chromium.org, jam, 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: Reduce GL context switches used to check pending queries. This reduces the frequency of GL context switches for checking pending queries by keeping track of the last time we checked queries. Instead of simply posting as task that will switch context and process pending queries we now keep track of the time at which we should process queries and only when we have reached this time will we switch context and process queries. BUG=522903, 436314 Committed: https://crrev.com/87580eb4e9a648eff277e8e2883f9c1616877285 Cr-Commit-Position: refs/heads/master@{#349502}

Patch Set 1 #

Patch Set 2 : Fix InProcessCommandBuffer #

Patch Set 3 : webview fix #

Total comments: 17

Patch Set 4 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+120 lines, -66 lines) Patch
M android_webview/browser/deferred_gpu_command_service.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M android_webview/browser/deferred_gpu_command_service.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/common/gpu/gpu_command_buffer_stub.h View 1 2 3 3 chunks +8 lines, -5 lines 0 comments Download
M content/common/gpu/gpu_command_buffer_stub.cc View 1 2 3 6 chunks +41 lines, -16 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder.h View 1 chunk +8 lines, -4 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 1 2 3 3 chunks +12 lines, -10 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_mock.h View 1 chunk +3 lines, -2 lines 0 comments Download
M gpu/command_buffer/service/gpu_scheduler.h View 2 chunks +13 lines, -3 lines 0 comments Download
M gpu/command_buffer/service/gpu_scheduler.cc View 2 chunks +9 lines, -4 lines 0 comments Download
M gpu/command_buffer/service/in_process_command_buffer.h View 1 5 chunks +6 lines, -6 lines 0 comments Download
M gpu/command_buffer/service/in_process_command_buffer.cc View 1 3 chunks +18 lines, -14 lines 0 comments Download

Messages

Total messages: 38 (11 generated)
reveman
5 years, 3 months ago (2015-08-27 20:18:59 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1315713007/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1315713007/20001
5 years, 3 months ago (2015-08-27 23:29:12 UTC) #4
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_android_rel_ng/builds/61824)
5 years, 3 months ago (2015-08-27 23:48:08 UTC) #6
dshwang
Thank you for fixing this issue. looks very good. some nits. https://codereview.chromium.org/1315713007/diff/40001/content/common/gpu/gpu_command_buffer_stub.cc File content/common/gpu/gpu_command_buffer_stub.cc (right): ...
5 years, 3 months ago (2015-09-01 08:56:11 UTC) #8
dshwang
I checked if this CL resolves the root issue. Unfortunately, not. I measure FPS on ...
5 years, 3 months ago (2015-09-01 10:52:35 UTC) #9
reveman
On 2015/09/01 at 10:52:35, dongseong.hwang wrote: > I checked if this CL resolves the root ...
5 years, 3 months ago (2015-09-01 15:54:11 UTC) #10
dshwang
https://codereview.chromium.org/1315713007/diff/40001/content/common/gpu/gpu_command_buffer_stub.cc File content/common/gpu/gpu_command_buffer_stub.cc (right): https://codereview.chromium.org/1315713007/diff/40001/content/common/gpu/gpu_command_buffer_stub.cc#newcode341 content/common/gpu/gpu_command_buffer_stub.cc:341: task_runner_->PostDelayedTask( On 2015/09/01 15:54:11, reveman wrote: > On 2015/09/01 ...
5 years, 3 months ago (2015-09-01 16:15:50 UTC) #11
dshwang
On 2015/09/01 15:54:11, reveman wrote: > On 2015/09/01 at 10:52:35, dongseong.hwang wrote: > > I ...
5 years, 3 months ago (2015-09-01 16:16:43 UTC) #12
reveman
https://codereview.chromium.org/1315713007/diff/40001/content/common/gpu/gpu_command_buffer_stub.cc File content/common/gpu/gpu_command_buffer_stub.cc (right): https://codereview.chromium.org/1315713007/diff/40001/content/common/gpu/gpu_command_buffer_stub.cc#newcode341 content/common/gpu/gpu_command_buffer_stub.cc:341: task_runner_->PostDelayedTask( On 2015/09/01 at 16:15:50, dshwang_ooo_5.9-27.9 wrote: > On ...
5 years, 3 months ago (2015-09-01 16:25:18 UTC) #13
dshwang
https://codereview.chromium.org/1315713007/diff/40001/content/common/gpu/gpu_command_buffer_stub.cc File content/common/gpu/gpu_command_buffer_stub.cc (right): https://codereview.chromium.org/1315713007/diff/40001/content/common/gpu/gpu_command_buffer_stub.cc#newcode341 content/common/gpu/gpu_command_buffer_stub.cc:341: task_runner_->PostDelayedTask( On 2015/09/01 16:25:17, reveman wrote: > On 2015/09/01 ...
5 years, 3 months ago (2015-09-01 16:32:18 UTC) #14
dshwang
https://codereview.chromium.org/1315713007/diff/40001/content/common/gpu/gpu_command_buffer_stub.cc File content/common/gpu/gpu_command_buffer_stub.cc (right): https://codereview.chromium.org/1315713007/diff/40001/content/common/gpu/gpu_command_buffer_stub.cc#newcode341 content/common/gpu/gpu_command_buffer_stub.cc:341: task_runner_->PostDelayedTask( On 2015/09/01 16:25:17, reveman wrote: > ScheduleDelayedWork is ...
5 years, 3 months ago (2015-09-01 16:37:00 UTC) #15
reveman
https://codereview.chromium.org/1315713007/diff/40001/content/common/gpu/gpu_command_buffer_stub.cc File content/common/gpu/gpu_command_buffer_stub.cc (right): https://codereview.chromium.org/1315713007/diff/40001/content/common/gpu/gpu_command_buffer_stub.cc#newcode341 content/common/gpu/gpu_command_buffer_stub.cc:341: task_runner_->PostDelayedTask( On 2015/09/01 at 16:37:00, dshwang_ooo_5.9-27.9 wrote: > On ...
5 years, 3 months ago (2015-09-01 17:02:07 UTC) #16
reveman
I forgot about this. sievers, can you take a look?
5 years, 3 months ago (2015-09-16 19:13:05 UTC) #17
no sievers
You have to rebase on top of https://codereview.chromium.org/1308913004/. It touches this code but shouldn't really ...
5 years, 3 months ago (2015-09-16 21:04:35 UTC) #18
reveman
ptal https://codereview.chromium.org/1315713007/diff/40001/content/common/gpu/gpu_command_buffer_stub.cc File content/common/gpu/gpu_command_buffer_stub.cc (right): https://codereview.chromium.org/1315713007/diff/40001/content/common/gpu/gpu_command_buffer_stub.cc#newcode381 content/common/gpu/gpu_command_buffer_stub.cc:381: scheduler_->ProcessPendingQueries(); On 2015/09/16 at 21:04:35, sievers wrote: > ...
5 years, 3 months ago (2015-09-16 23:12:08 UTC) #20
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1315713007/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1315713007/60001
5 years, 3 months ago (2015-09-16 23:12:55 UTC) #21
no sievers
lgtm https://codereview.chromium.org/1315713007/diff/40001/content/common/gpu/gpu_command_buffer_stub.cc File content/common/gpu/gpu_command_buffer_stub.cc (right): https://codereview.chromium.org/1315713007/diff/40001/content/common/gpu/gpu_command_buffer_stub.cc#newcode381 content/common/gpu/gpu_command_buffer_stub.cc:381: scheduler_->ProcessPendingQueries(); On 2015/09/16 23:12:08, reveman wrote: > On ...
5 years, 3 months ago (2015-09-17 00:34:38 UTC) #22
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 3 months ago (2015-09-17 00:56:28 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1315713007/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1315713007/60001
5 years, 3 months ago (2015-09-17 19:56:18 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/101128)
5 years, 3 months ago (2015-09-17 20:08:37 UTC) #29
reveman
+boliu for android_webview/
5 years, 3 months ago (2015-09-17 20:30:53 UTC) #31
boliu
So I guess this is just a rename in InProcessCommandBuffer, but there isn't actually any ...
5 years, 3 months ago (2015-09-17 20:44:06 UTC) #32
reveman
On 2015/09/17 at 20:44:06, boliu wrote: > So I guess this is just a rename ...
5 years, 3 months ago (2015-09-17 21:33:38 UTC) #33
boliu
On 2015/09/17 21:33:38, reveman wrote: > On 2015/09/17 at 20:44:06, boliu wrote: > > So ...
5 years, 3 months ago (2015-09-17 21:36:13 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1315713007/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1315713007/60001
5 years, 3 months ago (2015-09-17 21:38:05 UTC) #36
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 3 months ago (2015-09-17 21:45:38 UTC) #37
commit-bot: I haz the power
5 years, 3 months ago (2015-09-17 21:46:48 UTC) #38
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/87580eb4e9a648eff277e8e2883f9c1616877285
Cr-Commit-Position: refs/heads/master@{#349502}

Powered by Google App Engine
This is Rietveld 408576698