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

Issue 2342003003: [WIP] Mus: Pass the mojo connector to OzonePlatform::InitializeForGPU (Closed)

Created:
4 years, 3 months ago by fwang
Modified:
3 years, 10 months ago
Reviewers:
CC:
chromium-reviews, jam, darin-cc_chromium.org, piman+watch_chromium.org, tonikitoo, rjkroege
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Mus: Pass the mojo connector to OzonePlatform::InitializeForGPU OzonePlatform::InitializeForGPU is currently called without any initialization parameter in gl::init::GetAllowedGLImplementations. This latter function is itself called from gl::init::InitializeGLOneOff and for mus we actually have the following call stack: gl::init::InitializeGLOneOff gpu::GpuInit::InitializeAndStartSandbox ui::GpuMain::GpuMain ui::ws::GpuServiceProxy::GpuServiceProxy ui::ws::WindowServer::WindowServer ui::Service::OnStart This CL transmits the mojo connector from ui::Service::OnStart to gpu::GpuInit::InitializeAndStartSandbox and adds a call to InitializeForGPU before InitializeGLOneOff, so that the Ozone GPU component is initialized with the mojo connector. BUG=620934, 620927 R=rjkroege TEST=manually tested with "chrome --mash --ozone-platform=x11" CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -13 lines) Patch
M content/gpu/gpu_main.cc View 1 chunk +3 lines, -1 line 0 comments Download
M gpu/ipc/service/gpu_init.h View 2 chunks +6 lines, -1 line 0 comments Download
M gpu/ipc/service/gpu_init.cc View 3 chunks +12 lines, -1 line 0 comments Download
M services/ui/gpu/gpu_main.h View 2 chunks +5 lines, -1 line 0 comments Download
M services/ui/gpu/gpu_main.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M services/ui/service.cc View 1 chunk +1 line, -1 line 0 comments Download
M services/ui/ws/gpu_service_proxy.h View 2 chunks +6 lines, -1 line 0 comments Download
M services/ui/ws/gpu_service_proxy.cc View 1 chunk +4 lines, -2 lines 0 comments Download
M services/ui/ws/window_server.h View 2 chunks +6 lines, -1 line 0 comments Download
M services/ui/ws/window_server.cc View 2 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 10 (3 generated)
fwang
@Robert: So following-up on the discussion for https://codereview.chromium.org/2327073002/ this is commit is about the remaining ...
4 years, 3 months ago (2016-09-15 09:00:36 UTC) #3
tonikitoo
On 2016/09/15 09:00:36, fwang wrote: > @Robert: So following-up on the discussion for > https://codereview.chromium.org/2327073002/ ...
4 years, 3 months ago (2016-09-15 14:20:10 UTC) #4
fwang
> I believe now ui::OzonePlatform::InitializeForGPU(..) would be called twice: (1) > from gpu_main.cc - the ...
4 years, 3 months ago (2016-09-15 15:05:03 UTC) #5
fwang
I actually just realized that the ui/gpu components are in the same process for Mus/X11. ...
4 years, 3 months ago (2016-09-16 09:33:19 UTC) #6
rjkroege
On 2016/09/16 09:33:19, fwang wrote: > I actually just realized that the ui/gpu components are ...
4 years, 3 months ago (2016-09-21 13:27:21 UTC) #7
fwang
For the record, the "right" approach is given in https://groups.google.com/a/chromium.org/d/msg/ozone-dev/x998tKrMBbo/ED329B04AwAJ where we will use a ...
4 years, 3 months ago (2016-09-21 14:38:24 UTC) #8
fwang
3 years, 10 months ago (2017-02-23 12:02:24 UTC) #10
Message was sent while issue was closed.
I'm closing this CL.

Powered by Google App Engine
This is Rietveld 408576698