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

Issue 849103002: Share SyncPointManager implementation in in-process cmd buffer (Closed)

Created:
5 years, 11 months ago by boliu
Modified:
5 years, 10 months ago
Reviewers:
no sievers
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

Share SyncPointManager implementation There are two separate implementations of SyncPointManager between the in-process and cross-process command buffer. Merge the implementations in this CL. This paves way to actually sharing the same instance between the command buffer implementations. BUG=448168 Committed: https://crrev.com/0aa0158b47e44ec4470d4240fd7011b46a33f5ee Cr-Commit-Position: refs/heads/master@{#315731}

Patch Set 1 #

Total comments: 1

Patch Set 2 : wrap #

Total comments: 6

Patch Set 3 : DCHECKs #

Total comments: 3

Patch Set 4 : retire callback rewrite (incomplete) #

Patch Set 5 : wrapper class #

Patch Set 6 : private #

Total comments: 3

Patch Set 7 : blank lines #

Total comments: 6

Patch Set 8 : rebase #

Patch Set 9 : comments #

Total comments: 1

Patch Set 10 : thread checker #

Patch Set 11 : create multi thread #

Total comments: 3

Patch Set 12 : review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -50 lines) Patch
M content/common/gpu/gpu_channel_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M gpu/command_buffer/service/in_process_command_buffer.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +39 lines, -42 lines 0 comments Download
M gpu/command_buffer/service/sync_point_manager.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +12 lines, -3 lines 0 comments Download
M gpu/command_buffer/service/sync_point_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +19 lines, -4 lines 0 comments Download

Messages

Total messages: 45 (10 generated)
boliu
So I tried holding the callback in the SyncPointManager, which ended up being almost exactly ...
5 years, 11 months ago (2015-01-14 18:35:47 UTC) #2
no sievers
On 2015/01/14 18:35:47, boliu wrote: > So I tried holding the callback in the SyncPointManager, ...
5 years, 11 months ago (2015-01-15 20:10:40 UTC) #3
no sievers
https://codereview.chromium.org/849103002/diff/1/gpu/command_buffer/service/in_process_command_buffer.cc File gpu/command_buffer/service/in_process_command_buffer.cc (right): https://codereview.chromium.org/849103002/diff/1/gpu/command_buffer/service/in_process_command_buffer.cc#newcode136 gpu/command_buffer/service/in_process_command_buffer.cc:136: if (!g_sync_point_manager.Get().get()) not thread-safe. you can probably just wrap ...
5 years, 11 months ago (2015-01-15 20:10:47 UTC) #4
no sievers
On 2015/01/15 20:10:40, sievers wrote: > On 2015/01/14 18:35:47, boliu wrote: > > So I ...
5 years, 11 months ago (2015-01-15 20:14:42 UTC) #5
boliu
How does this look? Chose to wrap SyncPointManager, but didn't bother using a callback to ...
5 years, 11 months ago (2015-01-16 19:24:03 UTC) #6
no sievers
https://codereview.chromium.org/849103002/diff/20001/gpu/command_buffer/service/in_process_command_buffer.cc File gpu/command_buffer/service/in_process_command_buffer.cc (right): https://codereview.chromium.org/849103002/diff/20001/gpu/command_buffer/service/in_process_command_buffer.cc#newcode133 gpu/command_buffer/service/in_process_command_buffer.cc:133: class ThreadedSyncPointManager { nit: put a class comment that ...
5 years, 11 months ago (2015-01-16 20:03:37 UTC) #7
no sievers
https://codereview.chromium.org/849103002/diff/20001/gpu/command_buffer/service/in_process_command_buffer.cc File gpu/command_buffer/service/in_process_command_buffer.cc (right): https://codereview.chromium.org/849103002/diff/20001/gpu/command_buffer/service/in_process_command_buffer.cc#newcode185 gpu/command_buffer/service/in_process_command_buffer.cc:185: cond_var_.Wait(); We also have to think about the case ...
5 years, 11 months ago (2015-01-16 20:18:26 UTC) #8
boliu
https://codereview.chromium.org/849103002/diff/20001/gpu/command_buffer/service/in_process_command_buffer.cc File gpu/command_buffer/service/in_process_command_buffer.cc (right): https://codereview.chromium.org/849103002/diff/20001/gpu/command_buffer/service/in_process_command_buffer.cc#newcode185 gpu/command_buffer/service/in_process_command_buffer.cc:185: cond_var_.Wait(); On 2015/01/16 20:18:25, sievers wrote: > We also ...
5 years, 11 months ago (2015-01-16 20:33:31 UTC) #9
boliu
PS3 is a pretty rushed job of making this compile for webview. Just have the ...
5 years, 11 months ago (2015-01-16 20:46:09 UTC) #10
no sievers
On 2015/01/16 20:33:31, boliu wrote: > https://codereview.chromium.org/849103002/diff/20001/gpu/command_buffer/service/in_process_command_buffer.cc > File gpu/command_buffer/service/in_process_command_buffer.cc (right): > > https://codereview.chromium.org/849103002/diff/20001/gpu/command_buffer/service/in_process_command_buffer.cc#newcode185 > ...
5 years, 11 months ago (2015-01-16 21:31:22 UTC) #11
boliu
On 2015/01/16 21:31:22, sievers wrote: > On 2015/01/16 20:33:31, boliu wrote: > > > https://codereview.chromium.org/849103002/diff/20001/gpu/command_buffer/service/in_process_command_buffer.cc ...
5 years, 11 months ago (2015-01-16 21:38:16 UTC) #12
boliu
ping? missed this one on friday
5 years, 11 months ago (2015-01-27 00:23:17 UTC) #13
no sievers
https://codereview.chromium.org/849103002/diff/40001/gpu/command_buffer/service/sync_point_manager.cc File gpu/command_buffer/service/sync_point_manager.cc (right): https://codereview.chromium.org/849103002/diff/40001/gpu/command_buffer/service/sync_point_manager.cc#newcode61 gpu/command_buffer/service/sync_point_manager.cc:61: cond_var_.Broadcast(); Can we somehow avoid dealing with the cond. ...
5 years, 11 months ago (2015-01-27 21:26:39 UTC) #14
boliu
PTAL. I didn't rename the switch, which I think is probably better done in a ...
5 years, 11 months ago (2015-01-28 00:45:29 UTC) #15
boliu
https://codereview.chromium.org/849103002/diff/100001/gpu/command_buffer/service/in_process_command_buffer.cc File gpu/command_buffer/service/in_process_command_buffer.cc (right): https://codereview.chromium.org/849103002/diff/100001/gpu/command_buffer/service/in_process_command_buffer.cc#newcode861 gpu/command_buffer/service/in_process_command_buffer.cc:861: g_sync_point_manager.Get().AddSyncPointCallback(sync_point, callback); Question. The callback is no longer guaranteed ...
5 years, 11 months ago (2015-01-28 00:49:03 UTC) #16
boliu
https://codereview.chromium.org/849103002/diff/100001/gpu/command_buffer/service/in_process_command_buffer.cc File gpu/command_buffer/service/in_process_command_buffer.cc (right): https://codereview.chromium.org/849103002/diff/100001/gpu/command_buffer/service/in_process_command_buffer.cc#newcode861 gpu/command_buffer/service/in_process_command_buffer.cc:861: g_sync_point_manager.Get().AddSyncPointCallback(sync_point, callback); On 2015/01/28 00:49:03, boliu wrote: > Question. ...
5 years, 10 months ago (2015-01-28 17:48:17 UTC) #17
boliu
https://codereview.chromium.org/849103002/diff/100001/gpu/command_buffer/service/in_process_command_buffer.cc File gpu/command_buffer/service/in_process_command_buffer.cc (right): https://codereview.chromium.org/849103002/diff/100001/gpu/command_buffer/service/in_process_command_buffer.cc#newcode861 gpu/command_buffer/service/in_process_command_buffer.cc:861: g_sync_point_manager.Get().AddSyncPointCallback(sync_point, callback); On 2015/01/28 17:48:17, boliu wrote: > On ...
5 years, 10 months ago (2015-01-28 17:53:50 UTC) #18
boliu
this one dropped off your radar again?
5 years, 10 months ago (2015-02-05 16:39:34 UTC) #19
no sievers
lgtm https://codereview.chromium.org/849103002/diff/120001/gpu/command_buffer/service/in_process_command_buffer.cc File gpu/command_buffer/service/in_process_command_buffer.cc (right): https://codereview.chromium.org/849103002/diff/120001/gpu/command_buffer/service/in_process_command_buffer.cc#newcode134 gpu/command_buffer/service/in_process_command_buffer.cc:134: class SyncPointManagerWrapper { nit: put a comment that ...
5 years, 10 months ago (2015-02-05 21:55:04 UTC) #20
no sievers
One thing we need to figure out if we want to use the content/ gpu ...
5 years, 10 months ago (2015-02-05 22:16:13 UTC) #21
boliu
https://codereview.chromium.org/849103002/diff/120001/gpu/command_buffer/service/in_process_command_buffer.cc File gpu/command_buffer/service/in_process_command_buffer.cc (right): https://codereview.chromium.org/849103002/diff/120001/gpu/command_buffer/service/in_process_command_buffer.cc#newcode134 gpu/command_buffer/service/in_process_command_buffer.cc:134: class SyncPointManagerWrapper { On 2015/02/05 21:55:04, sievers wrote: > ...
5 years, 10 months ago (2015-02-05 23:50:45 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/849103002/160001
5 years, 10 months ago (2015-02-05 23:54:41 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/22146)
5 years, 10 months ago (2015-02-06 00:50:39 UTC) #27
boliu
https://codereview.chromium.org/849103002/diff/160001/gpu/command_buffer/service/sync_point_manager.h File gpu/command_buffer/service/sync_point_manager.h (right): https://codereview.chromium.org/849103002/diff/160001/gpu/command_buffer/service/sync_point_manager.h#newcode54 gpu/command_buffer/service/sync_point_manager.h:54: scoped_ptr<base::SequenceChecker> sequence_checker_; SequenceChecker is too strict for some tests. ...
5 years, 10 months ago (2015-02-06 01:52:48 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/849103002/180001
5 years, 10 months ago (2015-02-06 01:59:11 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/22215)
5 years, 10 months ago (2015-02-06 03:14:07 UTC) #32
boliu
This needs another look. (My blind guess at the ThreadChecker vs SequenceChecker was wrong.) https://codereview.chromium.org/849103002/diff/200001/gpu/command_buffer/service/in_process_command_buffer.cc ...
5 years, 10 months ago (2015-02-06 18:02:09 UTC) #33
boliu
On 2015/02/06 18:02:09, boliu wrote: > This needs another look. Ping? > > (My blind ...
5 years, 10 months ago (2015-02-10 21:04:31 UTC) #34
no sievers
lgtm https://codereview.chromium.org/849103002/diff/200001/gpu/command_buffer/service/sync_point_manager.h File gpu/command_buffer/service/sync_point_manager.h (right): https://codereview.chromium.org/849103002/diff/200001/gpu/command_buffer/service/sync_point_manager.h#newcode28 gpu/command_buffer/service/sync_point_manager.h:28: static SyncPointManager* Create(); nit: maybe just Create(bool allow_threaded_calls)? ...
5 years, 10 months ago (2015-02-11 00:27:27 UTC) #35
boliu
https://codereview.chromium.org/849103002/diff/200001/gpu/command_buffer/service/sync_point_manager.h File gpu/command_buffer/service/sync_point_manager.h (right): https://codereview.chromium.org/849103002/diff/200001/gpu/command_buffer/service/sync_point_manager.h#newcode28 gpu/command_buffer/service/sync_point_manager.h:28: static SyncPointManager* Create(); On 2015/02/11 00:27:27, sievers wrote: > ...
5 years, 10 months ago (2015-02-11 00:59:04 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/849103002/220001
5 years, 10 months ago (2015-02-11 01:00:44 UTC) #39
commit-bot: I haz the power
Try jobs failed on following builders: win_gpu on tryserver.chromium.gpu (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu/builds/122251) win_gpu_triggered_tests on tryserver.chromium.gpu (JOB_FAILED, ...
5 years, 10 months ago (2015-02-11 03:08:53 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/849103002/220001
5 years, 10 months ago (2015-02-11 04:05:33 UTC) #43
commit-bot: I haz the power
Committed patchset #12 (id:220001)
5 years, 10 months ago (2015-02-11 04:06:13 UTC) #44
commit-bot: I haz the power
5 years, 10 months ago (2015-02-11 04:07:03 UTC) #45
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/0aa0158b47e44ec4470d4240fd7011b46a33f5ee
Cr-Commit-Position: refs/heads/master@{#315731}

Powered by Google App Engine
This is Rietveld 408576698