|
ozone: Initialize a subsystem only if necessary.
Some of the ozone subsystems don't need to be initialized in the GPU
process (e.g. events). So let the ozone-platform know what process the
platform is being initialized for, and initialize only the subsystems
that make sense for that process.
The changes include:
* Remove SetInstance() from EventFactoryOzone, SurfaceFactoryOzone and
CursorFactoryOzone. Instead, set the instance from the constructor.
* Require the platforms to provide one explicit constructor for the UI
and GPU processes through the OzonePlatform interface.
* Do not initialize any of the sub-systems in InitializeGPU() in all
platforms.
* Move the initialization of ozone-platform into aura::Env::Init.
* Move the creation of udev-monitor in DeviceManagerUdev from the
constructor to ScanDevices(), since it needs the message-loop, and the
message-loop is constructed later.
* Update EventFactoryEvdev to set the ui_task_runner_ from
OnDispatcherListChanged(), since this too is created before the
message-loop.
BUG= 361137
R=piman@chromium.org
TBR=spang@chromium.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=270903
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+193 lines, -126 lines) |
Patch |
 |
M |
content/browser/browser_main_loop.cc
|
View
|
|
2 chunks |
+0 lines, -8 lines |
0 comments
|
Download
|
 |
M |
content/browser/compositor/software_output_device_ozone_unittest.cc
|
View
|
1
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
ui/aura/env.cc
|
View
|
|
2 chunks |
+9 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/aura/window_tree_host_ozone.cc
|
View
|
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
 |
M |
ui/base/cursor/ozone/cursor_factory_ozone.h
|
View
|
|
1 chunk |
+1 line, -4 lines |
0 comments
|
Download
|
 |
M |
ui/base/cursor/ozone/cursor_factory_ozone.cc
|
View
|
|
1 chunk |
+8 lines, -4 lines |
0 comments
|
Download
|
 |
M |
ui/events/ozone/device/udev/device_manager_udev.h
|
View
|
1
2
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/events/ozone/device/udev/device_manager_udev.cc
|
View
|
1
|
2 chunks |
+11 lines, -5 lines |
0 comments
|
Download
|
 |
M |
ui/events/ozone/evdev/event_factory_evdev.h
|
View
|
1
2
3
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/events/ozone/evdev/event_factory_evdev.cc
|
View
|
1
2
3
|
2 chunks |
+9 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/events/ozone/event_factory_ozone.h
|
View
|
1
|
1 chunk |
+1 line, -4 lines |
0 comments
|
Download
|
 |
M |
ui/events/ozone/event_factory_ozone.cc
|
View
|
1
|
1 chunk |
+8 lines, -4 lines |
0 comments
|
Download
|
 |
M |
ui/gfx/ozone/surface_factory_ozone.h
|
View
|
|
1 chunk |
+1 line, -4 lines |
0 comments
|
Download
|
 |
M |
ui/gfx/ozone/surface_factory_ozone.cc
|
View
|
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
ui/gl/gl_implementation_ozone.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ui/ozone/ozone_platform.h
|
View
|
1
2
|
2 chunks |
+11 lines, -3 lines |
0 comments
|
Download
|
 |
M |
ui/ozone/ozone_platform.cc
|
View
|
1
2
3
|
2 chunks |
+24 lines, -18 lines |
0 comments
|
Download
|
 |
M |
ui/ozone/platform/caca/ozone_platform_caca.cc
|
View
|
1
|
2 chunks |
+20 lines, -11 lines |
0 comments
|
Download
|
 |
M |
ui/ozone/platform/dri/ozone_platform_dri.cc
|
View
|
1
|
2 chunks |
+28 lines, -18 lines |
0 comments
|
Download
|
 |
M |
ui/ozone/platform/egltest/ozone_platform_egltest.cc
|
View
|
1
2
3
|
3 chunks |
+22 lines, -13 lines |
0 comments
|
Download
|
 |
M |
ui/ozone/platform/test/ozone_platform_test.cc
|
View
|
1
2
3
|
1 chunk |
+29 lines, -19 lines |
0 comments
|
Download
|
 |
M |
ui/views/widget/desktop_aura/desktop_screen_ozone.cc
|
View
|
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
Total messages: 10 (0 generated)
|