|
Remove SendBeginFramesToChildren plumbing
This patch implements the browser half of the Browser<->RenderWidget
begin frame plumbing. It reuses the existing ipc mechanisms to
send begin frames to the renderer and receive "needs begin frame"
messages in return.
Before this patch, the ui::Compositor would send "begin frames for
children" all the way from cc::Scheduler -> cc::SingleThreadProxy ->
cc::LayerTreeHost -> ui::Compositor -> ui::BeginFrameObserverProxy ->
content::RenderWidgetHostViewAura.
This patch uses the SurfaceFactoryClient::SetBeginFrameSource routing to
go SurfaceManager -> DelegatedFrameHost -> RenderWidgetHostViewAura
instead. RenderWidgetHostViewAura just observes the BeginFrameSource
directly and sends begin frame messages to the renderer when the begin
frame source ticks.
Because this path is only meaningful on the renderer side when
--enable-begin-frame-scheduling is on, this patch does not remove the
vsync paths and the compositor vsync manager quite yet. That will need
to be done as a follow up after this is turned on.
This depends on https://codereview.chromium.org/1821863002
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel
Committed: https://crrev.com/6d9b09303ab06012cfe16f4714e6beaa14eb9eb0
Cr-Commit-Position: refs/heads/master@{#388118}
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+106 lines, -674 lines) |
Patch |
 |
M |
cc/scheduler/scheduler.h
|
View
|
1
2
|
2 chunks |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
cc/scheduler/scheduler.cc
|
View
|
1
2
|
2 chunks |
+0 lines, -10 lines |
0 comments
|
Download
|
 |
M |
cc/scheduler/scheduler_state_machine.h
|
View
|
1
2
|
2 chunks |
+0 lines, -7 lines |
0 comments
|
Download
|
 |
M |
cc/scheduler/scheduler_state_machine.cc
|
View
|
1
2
|
4 chunks |
+2 lines, -13 lines |
0 comments
|
Download
|
 |
M |
cc/scheduler/scheduler_state_machine_unittest.cc
|
View
|
|
1 chunk |
+0 lines, -10 lines |
0 comments
|
Download
|
 |
M |
cc/scheduler/scheduler_unittest.cc
|
View
|
1
2
|
5 chunks |
+0 lines, -77 lines |
0 comments
|
Download
|
 |
M |
cc/test/fake_proxy.h
|
View
|
1
2
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
cc/test/layer_tree_test.cc
|
View
|
1
2
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
cc/test/test_hooks.h
|
View
|
1
2
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
cc/trees/layer_tree_host.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
 |
M |
cc/trees/layer_tree_host.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+0 lines, -10 lines |
0 comments
|
Download
|
 |
M |
cc/trees/layer_tree_host_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+0 lines, -71 lines |
0 comments
|
Download
|
 |
M |
cc/trees/proxy.h
|
View
|
1
2
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
cc/trees/proxy_impl.h
|
View
|
1
2
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
cc/trees/proxy_impl.cc
|
View
|
1
2
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
cc/trees/proxy_main.h
|
View
|
1
2
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
cc/trees/proxy_main.cc
|
View
|
1
2
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
cc/trees/remote_channel_impl.h
|
View
|
1
2
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
cc/trees/remote_channel_impl.cc
|
View
|
1
2
|
1 chunk |
+0 lines, -5 lines |
0 comments
|
Download
|
 |
M |
cc/trees/single_thread_proxy.h
|
View
|
1
2
|
2 chunks |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
cc/trees/single_thread_proxy.cc
|
View
|
1
2
|
2 chunks |
+0 lines, -10 lines |
0 comments
|
Download
|
 |
M |
content/browser/BUILD.gn
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
D |
content/browser/renderer_host/begin_frame_observer_proxy.h
|
View
|
|
1 chunk |
+0 lines, -73 lines |
0 comments
|
Download
|
 |
D |
content/browser/renderer_host/begin_frame_observer_proxy.cc
|
View
|
|
1 chunk |
+0 lines, -78 lines |
0 comments
|
Download
|
 |
D |
content/browser/renderer_host/begin_frame_observer_proxy_unittest.cc
|
View
|
1
2
|
1 chunk |
+0 lines, -97 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/delegated_frame_host.h
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/delegated_frame_host.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/render_widget_host_view_aura.h
|
View
|
1
2
3
4
5
6
7
8
9
|
5 chunks |
+11 lines, -7 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/render_widget_host_view_aura.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
6 chunks |
+33 lines, -9 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/render_widget_host_view_mac.h
|
View
|
1
2
3
4
5
6
7
8
|
5 chunks |
+15 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/render_widget_host_view_mac.mm
|
View
|
1
2
3
4
5
6
7
8
|
3 chunks |
+43 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/content_browser.gypi
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+0 lines, -3 lines |
0 comments
|
Download
|
 |
M |
content/content_tests.gypi
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/test/BUILD.gn
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
ui/compositor/compositor.h
|
View
|
1
2
|
5 chunks |
+0 lines, -16 lines |
0 comments
|
Download
|
 |
M |
ui/compositor/compositor.cc
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+0 lines, -36 lines |
0 comments
|
Download
|
 |
M |
ui/compositor/compositor_unittest.cc
|
View
|
1
2
|
2 chunks |
+0 lines, -108 lines |
0 comments
|
Download
|
Total messages: 19 (8 generated)
|