|
Hook up BeginFrameSource to SurfaceFactoryClient via SurfaceManager
SurfaceManager now maintains a dag of surface id namespaces.
Optionally, a single BeginFrameSource input can be attached to a single
namespace node. Every namespace node also has a SurfaceFactoryClient.
This client is informed of a current BeginFrameSource, which is chosen
from any BeginFrameSource attached to it or a parent of that node.
Any children of that namespace also are able to use that source.
SurfaceManager is responsible for picking which source to use, of which
it currently just picks the first one until that source goes is removed
after which it arbitrarily picks another valid one. In practice, this
means that a window moved to another display in ChromeOS will switch its
BeginFrameSource after the window is dropped onto the new window.
Because the users of this dag all have very different requirements, the
ordering of SurfaceFactoryClient registration, namespace hierarchy
registration, and BeginFrameSource attaching are not particularly
strict. BeginFrameSources, SurfaceFactoryClients, and hierarchies can
be registered and unregistered in any order with respect to each other.
BUG= 401331
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel
Committed: https://crrev.com/4e3c9d5b507f8a7cfb99ef3cc855184943a1dbd8
Cr-Commit-Position: refs/heads/master@{#379988}
Total comments: 11
Total comments: 2
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+785 lines, -606 lines) |
Patch |
 |
M |
android_webview/browser/hardware_renderer.h
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
android_webview/browser/hardware_renderer.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
3 chunks |
+5 lines, -1 line |
0 comments
|
Download
|
 |
M |
cc/BUILD.gn
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
cc/cc_tests.gyp
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
cc/surfaces/display.h
|
View
|
|
2 chunks |
+0 lines, -5 lines |
0 comments
|
Download
|
 |
M |
cc/surfaces/display.cc
|
View
|
1
2
3
|
3 chunks |
+3 lines, -27 lines |
0 comments
|
Download
|
 |
M |
cc/surfaces/display_unittest.cc
|
View
|
1
2
3
|
2 chunks |
+1 line, -25 lines |
0 comments
|
Download
|
 |
M |
cc/surfaces/surface.h
|
View
|
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
cc/surfaces/surface.cc
|
View
|
|
2 chunks |
+0 lines, -31 lines |
0 comments
|
Download
|
 |
M |
cc/surfaces/surface_aggregator.h
|
View
|
1
2
|
2 chunks |
+1 line, -11 lines |
0 comments
|
Download
|
 |
M |
cc/surfaces/surface_aggregator.cc
|
View
|
1
2
|
2 chunks |
+2 lines, -14 lines |
0 comments
|
Download
|
 |
M |
cc/surfaces/surface_aggregator_perftest.cc
|
View
|
|
3 chunks |
+2 lines, -11 lines |
0 comments
|
Download
|
 |
M |
cc/surfaces/surface_aggregator_unittest.cc
|
View
|
|
54 chunks |
+5 lines, -257 lines |
0 comments
|
Download
|
 |
M |
cc/surfaces/surface_display_output_surface.h
|
View
|
1
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
cc/surfaces/surface_display_output_surface.cc
|
View
|
1
2
|
4 chunks |
+15 lines, -2 lines |
0 comments
|
Download
|
 |
M |
cc/surfaces/surface_display_output_surface_unittest.cc
|
View
|
1
2
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
cc/surfaces/surface_factory.h
|
View
|
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
 |
M |
cc/surfaces/surface_factory.cc
|
View
|
1
|
2 chunks |
+0 lines, -6 lines |
0 comments
|
Download
|
 |
M |
cc/surfaces/surface_factory_client.h
|
View
|
|
1 chunk |
+2 lines, -8 lines |
0 comments
|
Download
|
 |
M |
cc/surfaces/surface_factory_unittest.cc
|
View
|
|
2 chunks |
+1 line, -33 lines |
0 comments
|
Download
|
 |
M |
cc/surfaces/surface_manager.h
|
View
|
1
2
|
3 chunks |
+61 lines, -0 lines |
0 comments
|
Download
|
 |
M |
cc/surfaces/surface_manager.cc
|
View
|
1
2
|
4 chunks |
+200 lines, -1 line |
0 comments
|
Download
|
 |
A |
cc/surfaces/surface_manager_unittest.cc
|
View
|
1
2
|
1 chunk |
+382 lines, -0 lines |
0 comments
|
Download
|
 |
M |
cc/surfaces/surface_unittest.cc
|
View
|
|
2 chunks |
+1 line, -108 lines |
0 comments
|
Download
|
 |
M |
cc/surfaces/surfaces_pixeltest.cc
|
View
|
|
4 chunks |
+4 lines, -17 lines |
0 comments
|
Download
|
 |
M |
cc/test/surface_hittest_test_helpers.h
|
View
|
1
2
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
components/mus/surfaces/top_level_display_client.h
|
View
|
1
2
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
components/mus/surfaces/top_level_display_client.cc
|
View
|
1
2
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
components/mus/ws/server_window_surface.h
|
View
|
|
3 chunks |
+6 lines, -2 lines |
0 comments
|
Download
|
 |
M |
components/mus/ws/server_window_surface.cc
|
View
|
1
2
3
4
5
6
7
8
|
4 chunks |
+15 lines, -7 lines |
0 comments
|
Download
|
 |
M |
components/mus/ws/server_window_surface_manager.h
|
View
|
1
2
3
|
1 chunk |
+6 lines, -2 lines |
0 comments
|
Download
|
 |
M |
components/mus/ws/server_window_surface_manager.cc
|
View
|
1
2
3
4
5
6
7
8
|
4 chunks |
+28 lines, -4 lines |
0 comments
|
Download
|
 |
M |
components/mus/ws/test_server_window_delegate.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
components/mus/ws/test_server_window_delegate.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
2 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
components/mus/ws/window_finder_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
components/mus/ws/window_tree_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
3 chunks |
+5 lines, -3 lines |
0 comments
|
Download
|
 |
M |
content/browser/compositor/delegated_frame_host.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/browser/compositor/delegated_frame_host.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
5 chunks |
+21 lines, -4 lines |
0 comments
|
Download
|
 |
M |
content/browser/frame_host/render_widget_host_view_child_frame.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
content/browser/frame_host/render_widget_host_view_child_frame.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/render_widget_host_view_android.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/render_widget_host_view_android.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
Total messages: 80 (38 generated)
|