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

Issue 2087333002: mus::GpuService: Support establish GpuChannel asynchronously. (Closed)

Created:
4 years, 6 months ago by Peng
Modified:
4 years, 5 months ago
Reviewers:
jam, sky, piman
CC:
chromium-reviews, rjkroege, mlamouri+watch-content_chromium.org, sadrul, darin-cc_chromium.org, mkwst+moarreviews-renderer_chromium.org, kalyank, danakj
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

mus::GpuService: Support establish GpuChannel asynchronously. The mus::GpuService will be used by chrome browser process and chrome renderer process in mus+ash. The current chrome browser may establish Gpu channel in both sync and async modes. The renderer process will only establish gpu channel synchronously. To satisfy chrome's requirements, we add the async version EstablishGpuChannel on GpuService. BUG=586390 Committed: https://crrev.com/83ec46db6602a30dc4a675d6736b3f93b2bcc8fe Cr-Commit-Position: refs/heads/master@{#402581}

Patch Set 1 #

Patch Set 2 : Update #

Total comments: 10

Patch Set 3 : Update #

Patch Set 4 : Fix a build error #

Total comments: 5

Patch Set 5 : Update #

Patch Set 6 : update #

Patch Set 7 : Rebase #

Total comments: 3

Patch Set 8 : Update #

Patch Set 9 : Upddate #

Patch Set 10 : Rebase #

Patch Set 11 : Fix gn check errors #

Patch Set 12 : Fix gn check errors #

Patch Set 13 : Fix build errors on Mac #

Patch Set 14 : Update #

Patch Set 15 : Fix the unittests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+232 lines, -42 lines) Patch
M ash/mus/window_manager_application.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M ash/sysui/sysui_application.cc View 2 chunks +3 lines, -0 lines 0 comments Download
M components/mus/common/gpu_service.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +30 lines, -6 lines 0 comments Download
M components/mus/common/gpu_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +163 lines, -23 lines 0 comments Download
M components/mus/demo/mus_demo.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M components/mus/public/cpp/lib/gles2_context.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/browser_main_loop.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +9 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +4 lines, -6 lines 0 comments Download
M content/renderer/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +7 lines, -4 lines 0 comments Download
M mash/quick_launch/quick_launch_application.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +2 lines, -0 lines 0 comments Download
M ui/views/mus/views_mus_test_suite.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +5 lines, -1 line 0 comments Download

Messages

Total messages: 55 (17 generated)
Peng
Hi piman, PTAL. Thanks.
4 years, 6 months ago (2016-06-22 16:16:59 UTC) #2
piman
https://codereview.chromium.org/2087333002/diff/20001/components/mus/common/gpu_service.cc File components/mus/common/gpu_service.cc (right): https://codereview.chromium.org/2087333002/diff/20001/components/mus/common/gpu_service.cc#newcode23 components/mus/common/gpu_service.cc:23: runner->PostTask(FROM_HERE, callback); nit: can we move the FROM_HERE to ...
4 years, 6 months ago (2016-06-22 17:58:10 UTC) #3
Peng
https://codereview.chromium.org/2087333002/diff/20001/components/mus/common/gpu_service.cc File components/mus/common/gpu_service.cc (right): https://codereview.chromium.org/2087333002/diff/20001/components/mus/common/gpu_service.cc#newcode23 components/mus/common/gpu_service.cc:23: runner->PostTask(FROM_HERE, callback); On 2016/06/22 17:58:10, piman wrote: > nit: ...
4 years, 6 months ago (2016-06-22 19:28:31 UTC) #5
piman
lgtm
4 years, 6 months ago (2016-06-22 21:33:52 UTC) #6
Peng
+sky for ash/* and mash/* +jam for base/threading/* Hi Scott & John, PTAL. Thanks.
4 years, 6 months ago (2016-06-22 22:53:50 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2087333002/60001
4 years, 6 months ago (2016-06-22 22:55:14 UTC) #10
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_compile_dbg_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_compile_dbg_ng/builds/220329) linux_chromium_compile_dbg_ng on ...
4 years, 6 months ago (2016-06-22 23:00:42 UTC) #12
Peng
+jam for base/threading Hi John, PTAL. Thanks.
4 years, 6 months ago (2016-06-22 23:06:18 UTC) #14
sky
LGTM
4 years, 6 months ago (2016-06-22 23:49:21 UTC) #15
jam
https://codereview.chromium.org/2087333002/diff/80001/base/threading/thread_restrictions.h File base/threading/thread_restrictions.h (right): https://codereview.chromium.org/2087333002/diff/80001/base/threading/thread_restrictions.h#newcode219 base/threading/thread_restrictions.h:219: friend class mus::GpuService; // http://crbug.com/620058 is this a bad ...
4 years, 6 months ago (2016-06-22 23:55:51 UTC) #16
jam
https://codereview.chromium.org/2087333002/diff/80001/components/mus/common/gpu_service.cc File components/mus/common/gpu_service.cc (right): https://codereview.chromium.org/2087333002/diff/80001/components/mus/common/gpu_service.cc#newcode114 components/mus/common/gpu_service.cc:114: if (!gpu_service_.WaitForIncomingResponse()) { i'm not sure I follow: why ...
4 years, 6 months ago (2016-06-22 23:57:25 UTC) #17
Peng
https://codereview.chromium.org/2087333002/diff/80001/base/threading/thread_restrictions.h File base/threading/thread_restrictions.h (right): https://codereview.chromium.org/2087333002/diff/80001/base/threading/thread_restrictions.h#newcode219 base/threading/thread_restrictions.h:219: friend class mus::GpuService; // http://crbug.com/620058 On 2016/06/22 23:55:50, jam ...
4 years, 6 months ago (2016-06-23 14:15:57 UTC) #18
jam
https://codereview.chromium.org/2087333002/diff/80001/components/mus/common/gpu_service.cc File components/mus/common/gpu_service.cc (right): https://codereview.chromium.org/2087333002/diff/80001/components/mus/common/gpu_service.cc#newcode114 components/mus/common/gpu_service.cc:114: if (!gpu_service_.WaitForIncomingResponse()) { On 2016/06/23 14:15:57, Peng wrote: > ...
4 years, 6 months ago (2016-06-23 15:27:23 UTC) #19
Peng
On 2016/06/23 15:27:23, jam wrote: > https://codereview.chromium.org/2087333002/diff/80001/components/mus/common/gpu_service.cc > File components/mus/common/gpu_service.cc (right): > > https://codereview.chromium.org/2087333002/diff/80001/components/mus/common/gpu_service.cc#newcode114 > ...
4 years, 6 months ago (2016-06-23 15:56:51 UTC) #24
jam
https://codereview.chromium.org/2087333002/diff/140001/components/mus/common/gpu_service.cc File components/mus/common/gpu_service.cc (right): https://codereview.chromium.org/2087333002/diff/140001/components/mus/common/gpu_service.cc#newcode114 components/mus/common/gpu_service.cc:114: base::ThreadRestrictions::ScopedAllowWait allow_wait; why isn't this a mojo::SyncCallRestrictions::ScopedAllowSyncCall allow_sync_call; and ...
4 years, 6 months ago (2016-06-23 16:39:39 UTC) #25
jam
https://codereview.chromium.org/2087333002/diff/140001/components/mus/common/gpu_service.cc File components/mus/common/gpu_service.cc (right): https://codereview.chromium.org/2087333002/diff/140001/components/mus/common/gpu_service.cc#newcode114 components/mus/common/gpu_service.cc:114: base::ThreadRestrictions::ScopedAllowWait allow_wait; On 2016/06/23 16:39:39, jam wrote: > why ...
4 years, 6 months ago (2016-06-23 16:42:58 UTC) #26
Peng
https://codereview.chromium.org/2087333002/diff/140001/components/mus/common/gpu_service.cc File components/mus/common/gpu_service.cc (right): https://codereview.chromium.org/2087333002/diff/140001/components/mus/common/gpu_service.cc#newcode114 components/mus/common/gpu_service.cc:114: base::ThreadRestrictions::ScopedAllowWait allow_wait; On 2016/06/23 16:39:39, jam wrote: > why ...
4 years, 6 months ago (2016-06-23 17:07:37 UTC) #27
jam
On 2016/06/23 17:07:37, Peng wrote: > https://codereview.chromium.org/2087333002/diff/140001/components/mus/common/gpu_service.cc > File components/mus/common/gpu_service.cc (right): > > https://codereview.chromium.org/2087333002/diff/140001/components/mus/common/gpu_service.cc#newcode114 > ...
4 years, 6 months ago (2016-06-23 17:16:52 UTC) #28
jam
also the new description says that browser may establish gpu channel in async and sync ...
4 years, 6 months ago (2016-06-23 17:18:15 UTC) #29
Peng
On 2016/06/23 17:18:15, jam wrote: > also the new description says that browser may establish ...
4 years, 6 months ago (2016-06-23 17:27:55 UTC) #30
piman
On Thu, Jun 23, 2016 at 10:27 AM, <penghuang@chromium.org> wrote: > On 2016/06/23 17:18:15, jam ...
4 years, 6 months ago (2016-06-23 20:23:29 UTC) #31
jam
On 2016/06/23 20:23:29, piman wrote: > On Thu, Jun 23, 2016 at 10:27 AM, <mailto:penghuang@chromium.org> ...
4 years, 6 months ago (2016-06-23 23:04:21 UTC) #32
piman
On Thu, Jun 23, 2016 at 4:04 PM, <jam@chromium.org> wrote: > On 2016/06/23 20:23:29, piman ...
4 years, 6 months ago (2016-06-23 23:11:30 UTC) #33
Peng
On 2016/06/23 23:04:21, jam wrote: > On 2016/06/23 20:23:29, piman wrote: > > On Thu, ...
4 years, 6 months ago (2016-06-23 23:15:05 UTC) #34
Peng
Hi John, The CL has been updated. I removed the WaitForIncomingResponse(). PTAL. Thanks.
4 years, 6 months ago (2016-06-24 18:47:09 UTC) #35
Peng
On 2016/06/24 18:47:09, Peng wrote: > Hi John, The CL has been updated. I removed ...
4 years, 5 months ago (2016-06-27 20:03:49 UTC) #36
jam
On 2016/06/27 20:03:49, Peng wrote: > On 2016/06/24 18:47:09, Peng wrote: > > Hi John, ...
4 years, 5 months ago (2016-06-27 21:49:50 UTC) #37
Peng
On 2016/06/27 21:49:50, jam wrote: > On 2016/06/27 20:03:49, Peng wrote: > > On 2016/06/24 ...
4 years, 5 months ago (2016-06-27 22:49:12 UTC) #38
Peng
Hi Antoine, the GpuService has been uploaded since your LGTM. Would you like take a ...
4 years, 5 months ago (2016-06-27 22:51:57 UTC) #39
piman
LGTM if jam@ is happy
4 years, 5 months ago (2016-06-27 23:08:44 UTC) #40
Peng
On 2016/06/27 23:08:44, piman wrote: > LGTM if jam@ is happy Since I have followed ...
4 years, 5 months ago (2016-06-28 02:34:31 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/2087333002/280001
4 years, 5 months ago (2016-06-28 02:46:18 UTC) #44
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/253511)
4 years, 5 months ago (2016-06-28 03:59:29 UTC) #46
jam
On 2016/06/27 22:49:12, Peng wrote: > On 2016/06/27 21:49:50, jam wrote: > > On 2016/06/27 ...
4 years, 5 months ago (2016-06-28 15:05:48 UTC) #47
jam
On 2016/06/28 15:05:48, jam wrote: > On 2016/06/27 22:49:12, Peng wrote: > > On 2016/06/27 ...
4 years, 5 months ago (2016-06-28 16:12:51 UTC) #48
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/2087333002/300001
4 years, 5 months ago (2016-06-28 20:59:56 UTC) #51
commit-bot: I haz the power
Committed patchset #15 (id:300001)
4 years, 5 months ago (2016-06-28 22:49:51 UTC) #53
commit-bot: I haz the power
4 years, 5 months ago (2016-06-28 22:51:38 UTC) #55
Message was sent while issue was closed.
Patchset 15 (id:??) landed as
https://crrev.com/83ec46db6602a30dc4a675d6736b3f93b2bcc8fe
Cr-Commit-Position: refs/heads/master@{#402581}

Powered by Google App Engine
This is Rietveld 408576698