|
Add PlatformScreenDelegate and start implementation.
There is currently a single callback provided to PlatformScreen for when
new displays are added. We need to be able to notify not only when new
displays are added but also when displays are modified or removed.
Instead of having three callbacks, the PlatformScreenDelegate interface
is added.
The ui::ws::DisplayManager class implements PlatformScreenDelegate. This
is ultimately the class that needs to know about changes to displays so
it can update root windows accordingly.
There are some changes to ownership and constructor parameters to
facilitate having DisplayManager implement PlatformScreenDelegate. The
WindowServer instance is passed into DisplayManager, as it doesn't make
sense that Display objects owned by DisplayManager are allowed to know
about WindowServer but DisplayManager is not. The DisplayManagerDelegate
interface is simplified and changed to UserDisplayManagerDelegate as
it's no longer needed for DisplayManager.
The instantiation of SurfaceState is moved from Service to WindowServer.
There is no need to have Service know about SurfaceState anymore. Also,
SurfaceState will be moving to the GPU processes regardless.
BUG= 641012
Committed: https://crrev.com/5ea85f775041eb6ccb4813bdf91e1672f829c577
Cr-Commit-Position: refs/heads/master@{#414710}
Total comments: 6
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+216 lines, -219 lines) |
Patch |
 |
M |
services/ui/display/BUILD.gn
|
View
|
1
2
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
services/ui/display/platform_screen.h
|
View
|
1
2
3
|
2 chunks |
+7 lines, -17 lines |
0 comments
|
Download
|
 |
A |
services/ui/display/platform_screen_delegate.h
|
View
|
1
2
3
|
1 chunk |
+42 lines, -0 lines |
0 comments
|
Download
|
 |
M |
services/ui/display/platform_screen_impl.h
|
View
|
1
2
3
|
2 chunks |
+9 lines, -3 lines |
0 comments
|
Download
|
 |
M |
services/ui/display/platform_screen_impl.cc
|
View
|
1
2
3
|
2 chunks |
+12 lines, -11 lines |
0 comments
|
Download
|
 |
M |
services/ui/display/platform_screen_impl_ozone.h
|
View
|
1
2
3
|
3 chunks |
+2 lines, -7 lines |
0 comments
|
Download
|
 |
M |
services/ui/display/platform_screen_impl_ozone.cc
|
View
|
1
2
3
|
2 chunks |
+5 lines, -7 lines |
0 comments
|
Download
|
 |
M |
services/ui/service.h
|
View
|
1
2
3
|
4 chunks |
+1 line, -10 lines |
0 comments
|
Download
|
 |
M |
services/ui/service.cc
|
View
|
1
2
3
|
6 chunks |
+11 lines, -26 lines |
0 comments
|
Download
|
 |
M |
services/ui/ws/BUILD.gn
|
View
|
1
2
3
|
2 chunks |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
services/ui/ws/cursor_unittest.cc
|
View
|
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
services/ui/ws/display_manager.h
|
View
|
1
2
|
3 chunks |
+13 lines, -5 lines |
0 comments
|
Download
|
 |
M |
services/ui/ws/display_manager.cc
|
View
|
1
2
|
5 chunks |
+37 lines, -8 lines |
0 comments
|
Download
|
 |
D |
services/ui/ws/display_manager_delegate.h
|
View
|
|
1 chunk |
+0 lines, -38 lines |
0 comments
|
Download
|
 |
M |
services/ui/ws/display_unittest.cc
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
services/ui/ws/test_utils.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
services/ui/ws/test_utils.cc
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
services/ui/ws/user_display_manager.h
|
View
|
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
services/ui/ws/user_display_manager.cc
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
A + |
services/ui/ws/user_display_manager_delegate.h
|
View
|
|
2 chunks |
+5 lines, -11 lines |
0 comments
|
Download
|
 |
M |
services/ui/ws/user_display_manager_unittest.cc
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
services/ui/ws/window_server.h
|
View
|
1
|
5 chunks |
+15 lines, -14 lines |
0 comments
|
Download
|
 |
M |
services/ui/ws/window_server.cc
|
View
|
1
|
4 chunks |
+33 lines, -35 lines |
0 comments
|
Download
|
 |
M |
services/ui/ws/window_server_delegate.h
|
View
|
1
2
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
services/ui/ws/window_tree_host_factory.h
|
View
|
|
2 chunks |
+2 lines, -5 lines |
0 comments
|
Download
|
 |
M |
services/ui/ws/window_tree_host_factory.cc
|
View
|
|
1 chunk |
+6 lines, -7 lines |
0 comments
|
Download
|
Total messages: 14 (5 generated)
|