Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(81)

Issue 1841083007: Remove SendBeginFramesToChildren plumbing (Closed)

Created:
4 years, 8 months ago by enne (OOO)
Modified:
4 years, 8 months ago
Reviewers:
danakj, sunnyps, no sievers, Sami
CC:
cc-bugs_chromium.org, chromium-reviews, danakj+watch_chromium.org, darin-cc_chromium.org, jam, jbauman+watch_chromium.org, kalyank, nona+watch_chromium.org, piman+watch_chromium.org, scheduler-bugs_chromium.org, shuchen+watch_chromium.org, sievers+watch_chromium.org, James Su, Ian Vollick, yusukes+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@scheduler_output_surface_client_set_beginframesource
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

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}

Patch Set 1 #

Patch Set 2 : Remove some comments #

Total comments: 4

Patch Set 3 : Rebase #

Patch Set 4 : RWHVMac hookup #

Patch Set 5 : Using trybots as my mac compiler <_< #

Patch Set 6 : Take three #

Patch Set 7 : >_> #

Patch Set 8 : <_< #

Patch Set 9 : Rebase #

Patch Set 10 : Rebase #

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

Messages

Total messages: 19 (8 generated)
enne (OOO)
This patch won't do anything without --enable-begin-frame-scheduling turned on. I think I need to make ...
4 years, 8 months ago (2016-04-07 18:47:20 UTC) #5
enne (OOO)
4 years, 8 months ago (2016-04-07 18:47:55 UTC) #7
no sievers
content lgtm https://codereview.chromium.org/1841083007/diff/20001/content/browser/renderer_host/render_widget_host_view_aura.cc File content/browser/renderer_host/render_widget_host_view_aura.cc (right): https://codereview.chromium.org/1841083007/diff/20001/content/browser/renderer_host/render_widget_host_view_aura.cc#newcode667 content/browser/renderer_host/render_widget_host_view_aura.cc:667: observing_begin_frame_source_ = needs_begin_frames; nit: I'm wondering if ...
4 years, 8 months ago (2016-04-07 20:35:35 UTC) #8
danakj
The LGTM's overfloweth.
4 years, 8 months ago (2016-04-07 22:18:55 UTC) #9
sunnyps
LGTM. Thanks for getting rid of this. https://codereview.chromium.org/1841083007/diff/20001/content/browser/renderer_host/render_widget_host_view_aura.cc File content/browser/renderer_host/render_widget_host_view_aura.cc (right): https://codereview.chromium.org/1841083007/diff/20001/content/browser/renderer_host/render_widget_host_view_aura.cc#newcode677 content/browser/renderer_host/render_widget_host_view_aura.cc:677: delegated_frame_host_->SetVSyncParameters(args.frame_time, args.interval); ...
4 years, 8 months ago (2016-04-07 23:57:54 UTC) #10
enne (OOO)
https://codereview.chromium.org/1841083007/diff/20001/content/browser/renderer_host/render_widget_host_view_aura.cc File content/browser/renderer_host/render_widget_host_view_aura.cc (right): https://codereview.chromium.org/1841083007/diff/20001/content/browser/renderer_host/render_widget_host_view_aura.cc#newcode677 content/browser/renderer_host/render_widget_host_view_aura.cc:677: delegated_frame_host_->SetVSyncParameters(args.frame_time, args.interval); On 2016/04/07 at 23:57:54, sunnyps wrote: > ...
4 years, 8 months ago (2016-04-14 18:12:16 UTC) #11
enne (OOO)
On 2016/04/14 at 18:12:16, enne wrote: > https://codereview.chromium.org/1841083007/diff/20001/content/browser/renderer_host/render_widget_host_view_aura.cc > File content/browser/renderer_host/render_widget_host_view_aura.cc (right): > > https://codereview.chromium.org/1841083007/diff/20001/content/browser/renderer_host/render_widget_host_view_aura.cc#newcode677 ...
4 years, 8 months ago (2016-04-19 00:53:20 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1841083007/170001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1841083007/170001
4 years, 8 months ago (2016-04-19 00:53:39 UTC) #15
sunnyps
https://codereview.chromium.org/1841083007/diff/20001/content/browser/renderer_host/render_widget_host_view_aura.cc File content/browser/renderer_host/render_widget_host_view_aura.cc (right): https://codereview.chromium.org/1841083007/diff/20001/content/browser/renderer_host/render_widget_host_view_aura.cc#newcode677 content/browser/renderer_host/render_widget_host_view_aura.cc:677: delegated_frame_host_->SetVSyncParameters(args.frame_time, args.interval); On 2016/04/14 18:12:16, enne wrote: > On ...
4 years, 8 months ago (2016-04-19 01:00:22 UTC) #16
commit-bot: I haz the power
Committed patchset #10 (id:170001)
4 years, 8 months ago (2016-04-19 01:52:24 UTC) #17
commit-bot: I haz the power
4 years, 8 months ago (2016-04-19 01:53:25 UTC) #19
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/6d9b09303ab06012cfe16f4714e6beaa14eb9eb0
Cr-Commit-Position: refs/heads/master@{#388118}

Powered by Google App Engine
This is Rietveld 408576698