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

Issue 2249413004: services/ui: Allow injecting the IO thread task runner for gpu channel. (Closed)

Created:
4 years, 4 months ago by sadrul
Modified:
4 years, 4 months ago
CC:
chromium-reviews, rjkroege, tfarina, jam, darin-cc_chromium.org, mlamouri+watch-content_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

services/ui: Allow injecting the IO thread task runner for gpu channel. Instead of always creating a new thread, allow injecting the IO thread task runner into the ui::GpuService for the gpu::GpuChannelHost it creates. This allows chrome browser and renderer processes to inject their existing IO thread's task runner. A new thread is created only for other mus apps that do not have their own IO thread. BUG=638647 Committed: https://crrev.com/75f7dde87bfea8b3eab80814e320c2c528d77224 Cr-Commit-Position: refs/heads/master@{#413583}

Patch Set 1 #

Total comments: 3

Patch Set 2 : . #

Total comments: 4

Patch Set 3 : . #

Patch Set 4 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -24 lines) Patch
M ash/mus/window_manager_application.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/chrome_browser_main_extra_parts_views.cc View 1 2 2 chunks +5 lines, -1 line 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M services/ui/demo/mus_demo.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M services/ui/public/cpp/gpu_service.h View 1 2 3 3 chunks +9 lines, -4 lines 0 comments Download
M services/ui/public/cpp/gpu_service.cc View 1 2 3 chunks +15 lines, -9 lines 0 comments Download
M ui/views/mus/window_manager_connection.h View 1 2 2 chunks +8 lines, -3 lines 0 comments Download
M ui/views/mus/window_manager_connection.cc View 1 2 2 chunks +6 lines, -4 lines 0 comments Download

Messages

Total messages: 41 (23 generated)
sadrul
4 years, 4 months ago (2016-08-18 03:27:15 UTC) #4
Fady Samuel
https://codereview.chromium.org/2249413004/diff/1/services/ui/public/cpp/gpu_service.h File services/ui/public/cpp/gpu_service.h (right): https://codereview.chromium.org/2249413004/diff/1/services/ui/public/cpp/gpu_service.h#newcode44 services/ui/public/cpp/gpu_service.h:44: scoped_refptr<base::SingleThreadTaskRunner> task_runner); Can this not be passed in Initialize ...
4 years, 4 months ago (2016-08-18 11:00:56 UTC) #7
sadrul
+sky@ for owner https://codereview.chromium.org/2249413004/diff/1/services/ui/public/cpp/gpu_service.h File services/ui/public/cpp/gpu_service.h (right): https://codereview.chromium.org/2249413004/diff/1/services/ui/public/cpp/gpu_service.h#newcode44 services/ui/public/cpp/gpu_service.h:44: scoped_refptr<base::SingleThreadTaskRunner> task_runner); On 2016/08/18 11:00:56, Fady ...
4 years, 4 months ago (2016-08-18 12:56:53 UTC) #11
Fady Samuel
https://codereview.chromium.org/2249413004/diff/1/services/ui/public/cpp/gpu_service.h File services/ui/public/cpp/gpu_service.h (right): https://codereview.chromium.org/2249413004/diff/1/services/ui/public/cpp/gpu_service.h#newcode44 services/ui/public/cpp/gpu_service.h:44: scoped_refptr<base::SingleThreadTaskRunner> task_runner); On 2016/08/18 12:56:53, sadrul wrote: > On ...
4 years, 4 months ago (2016-08-18 13:05:39 UTC) #12
Fady Samuel
On 2016/08/18 13:05:39, Fady Samuel wrote: > https://codereview.chromium.org/2249413004/diff/1/services/ui/public/cpp/gpu_service.h > File services/ui/public/cpp/gpu_service.h (right): > > https://codereview.chromium.org/2249413004/diff/1/services/ui/public/cpp/gpu_service.h#newcode44 ...
4 years, 4 months ago (2016-08-18 13:11:51 UTC) #13
sky
LGTM
4 years, 4 months ago (2016-08-18 18:08:48 UTC) #16
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/2249413004/20001
4 years, 4 months ago (2016-08-18 19:32:15 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/241096)
4 years, 4 months ago (2016-08-18 19:39:40 UTC) #20
sadrul
+ben@ for content/renderer change
4 years, 4 months ago (2016-08-18 19:44:02 UTC) #22
sadrul
+piman@ for content/renderer changes since ben@ is ooo
4 years, 4 months ago (2016-08-22 06:10:59 UTC) #24
piman
https://codereview.chromium.org/2249413004/diff/20001/services/ui/public/cpp/gpu_service.cc File services/ui/public/cpp/gpu_service.cc (right): https://codereview.chromium.org/2249413004/diff/20001/services/ui/public/cpp/gpu_service.cc#newcode59 services/ui/public/cpp/gpu_service.cc:59: DCHECK(!io_task_runner_) Would it make sense instead to pass the ...
4 years, 4 months ago (2016-08-22 19:42:04 UTC) #25
sadrul
https://codereview.chromium.org/2249413004/diff/20001/services/ui/public/cpp/gpu_service.cc File services/ui/public/cpp/gpu_service.cc (right): https://codereview.chromium.org/2249413004/diff/20001/services/ui/public/cpp/gpu_service.cc#newcode59 services/ui/public/cpp/gpu_service.cc:59: DCHECK(!io_task_runner_) On 2016/08/22 19:42:03, piman wrote: > Would it ...
4 years, 4 months ago (2016-08-22 20:05:55 UTC) #26
piman
https://codereview.chromium.org/2249413004/diff/20001/services/ui/public/cpp/gpu_service.cc File services/ui/public/cpp/gpu_service.cc (right): https://codereview.chromium.org/2249413004/diff/20001/services/ui/public/cpp/gpu_service.cc#newcode59 services/ui/public/cpp/gpu_service.cc:59: DCHECK(!io_task_runner_) On 2016/08/22 20:05:54, sadrul wrote: > On 2016/08/22 ...
4 years, 4 months ago (2016-08-22 20:31:50 UTC) #27
sadrul
https://codereview.chromium.org/2249413004/diff/20001/services/ui/public/cpp/gpu_service.cc File services/ui/public/cpp/gpu_service.cc (right): https://codereview.chromium.org/2249413004/diff/20001/services/ui/public/cpp/gpu_service.cc#newcode59 services/ui/public/cpp/gpu_service.cc:59: DCHECK(!io_task_runner_) On 2016/08/22 20:31:50, piman wrote: > On 2016/08/22 ...
4 years, 4 months ago (2016-08-22 21:20:38 UTC) #31
piman
LGTM, thanks!
4 years, 4 months ago (2016-08-22 21:50:47 UTC) #33
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/2249413004/60001
4 years, 4 months ago (2016-08-22 23:31:56 UTC) #38
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 4 months ago (2016-08-22 23:37:49 UTC) #39
commit-bot: I haz the power
4 years, 4 months ago (2016-08-22 23:41:00 UTC) #41
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/75f7dde87bfea8b3eab80814e320c2c528d77224
Cr-Commit-Position: refs/heads/master@{#413583}

Powered by Google App Engine
This is Rietveld 408576698