|
Plumb ViewportMetrics change notifications around the world and back.
This fixes the race which is seen where mojo_shell will sometimes
launch with the wrong viewport metrics since the DisplayManager
will happily respond to GetViewportMetrics with default values
before the NativeViewport has fully booted and told it what the
actual values are.
I considered making DisplayManager hang until the NativeViewport
was ready, but I decided that it does make sense for the
ViewportMetrics (device pixel ratio, mostly) to change for a
view if it were to move between displays (as exists on desktop
OSes today).
R=abarth@chromium.org, sky@chromium.org
Committed: https://chromium.googlesource.com/external/mojo/+/2b961563d09c1972d8fafe91d9de5c1a38d546e6
Total comments: 10
Total comments: 11
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+138 lines, -9 lines) |
Patch |
 |
M |
mojo/services/view_manager/public/cpp/lib/view.cc
|
View
|
1
2
3
4
5
6
|
3 chunks |
+20 lines, -0 lines |
0 comments
|
Download
|
 |
M |
mojo/services/view_manager/public/cpp/lib/view_manager_client_impl.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
mojo/services/view_manager/public/cpp/lib/view_manager_client_impl.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
2 chunks |
+22 lines, -1 line |
0 comments
|
Download
|
 |
M |
mojo/services/view_manager/public/cpp/lib/view_private.h
|
View
|
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
mojo/services/view_manager/public/cpp/lib/view_private.cc
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
mojo/services/view_manager/public/cpp/view.h
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
mojo/services/view_manager/public/cpp/view_observer.h
|
View
|
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
mojo/services/view_manager/public/interfaces/view_manager.mojom
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+6 lines, -1 line |
0 comments
|
Download
|
 |
M |
services/view_manager/connection_manager.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
services/view_manager/connection_manager.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+9 lines, -0 lines |
0 comments
|
Download
|
 |
M |
services/view_manager/display_manager.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
services/view_manager/server_view_delegate.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
services/view_manager/test_change_tracker.h
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
services/view_manager/test_change_tracker.cc
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+13 lines, -0 lines |
0 comments
|
Download
|
 |
M |
services/view_manager/view_manager_service_apptest.cc
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
services/view_manager/view_manager_service_impl.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
services/view_manager/view_manager_service_impl.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+8 lines, -0 lines |
0 comments
|
Download
|
 |
M |
services/view_manager/view_manager_service_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
sky/viewer/document_view.h
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
sky/viewer/document_view.cc
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+15 lines, -4 lines |
0 comments
|
Download
|
Total messages: 12 (0 generated)
|