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

Issue 1765723002: Hoist begin frame sources out of scheduler (Closed)

Created:
4 years, 9 months ago by enne (OOO)
Modified:
4 years, 9 months ago
Reviewers:
sunnyps, Sami
CC:
cc-bugs_chromium.org, chromium-reviews, scheduler-bugs_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@scheduler_remove_throttle_flag
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Hoist begin frame sources out of scheduler To avoid cc::Scheduler having to sometimes own / sometimes create / switch between sources / manage parameters on sources, hoist all this logic up to the owners of cc::Scheduler. This refactoring makes it possible to eventually allow an OutputSurface to set a BeginFrameSource on its client and then forward that to the scheduler to use. That future is made easier by the scheduler having a single begin frame source managed by its owner. This patch adds a bit of duplicated logic in three places (single thread proxy / threaded proxy / tests) for the creation of the begin frame source. However, the single thread and threaded versions were already doing different things (re: authoritative vsync signals). The hope is that the vsync information and begin frame source creation for the synthetic sources can get further hoisted into OutputSurface itself. Depends on https://codereview.chromium.org/1762823002 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/b9bf377e238af579e4b6dd01cb4007ba712da742 Cr-Commit-Position: refs/heads/master@{#381558}

Patch Set 1 #

Total comments: 9

Patch Set 2 : Address skyostil comments #

Total comments: 2

Patch Set 3 : Remove multiplexer #

Total comments: 1

Patch Set 4 : Fix trace name #

Patch Set 5 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+131 lines, -749 lines) Patch
M cc/scheduler/begin_frame_source.h View 1 2 1 chunk +0 lines, -51 lines 0 comments Download
M cc/scheduler/begin_frame_source.cc View 1 2 1 chunk +0 lines, -191 lines 0 comments Download
M cc/scheduler/begin_frame_source_unittest.cc View 1 2 1 chunk +0 lines, -337 lines 0 comments Download
M cc/scheduler/scheduler.h View 1 4 chunks +6 lines, -24 lines 0 comments Download
M cc/scheduler/scheduler.cc View 1 2 3 13 chunks +26 lines, -80 lines 0 comments Download
M cc/scheduler/scheduler_unittest.cc View 1 2 3 4 4 chunks +21 lines, -6 lines 0 comments Download
M cc/test/layer_tree_test.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M cc/test/scheduler_test_common.h View 1 4 chunks +9 lines, -21 lines 0 comments Download
M cc/test/scheduler_test_common.cc View 1 chunk +2 lines, -28 lines 0 comments Download
M cc/trees/proxy_impl.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M cc/trees/proxy_impl.cc View 1 3 chunks +27 lines, -5 lines 0 comments Download
M cc/trees/single_thread_proxy.h View 1 1 chunk +5 lines, -0 lines 0 comments Download
M cc/trees/single_thread_proxy.cc View 1 3 chunks +31 lines, -5 lines 0 comments Download

Messages

Total messages: 34 (15 generated)
enne (OOO)
https://codereview.chromium.org/1765723002/diff/1/cc/scheduler/scheduler.cc File cc/scheduler/scheduler.cc (left): https://codereview.chromium.org/1765723002/diff/1/cc/scheduler/scheduler.cc#oldcode807 cc/scheduler/scheduler.cc:807: state->SetDouble("authoritative_vsync_interval_ms", I'm not sure if anybody was using this ...
4 years, 9 months ago (2016-03-03 23:06:14 UTC) #4
Sami
Less magic in the scheduler == good. Thanks for the cleanup, lgtm with assorted nits. ...
4 years, 9 months ago (2016-03-08 19:15:25 UTC) #5
enne (OOO)
Thanks for the review! You may also want to look at https://codereview.chromium.org/1762823002 which this depends ...
4 years, 9 months ago (2016-03-08 21:38:02 UTC) #6
enne (OOO)
On 2016/03/08 at 21:38:02, enne wrote: > This ends up being either the external one ...
4 years, 9 months ago (2016-03-08 23:19:11 UTC) #7
sunnyps
Now that we're not using BeginFrameSourceMultiplexer, can we remove that in this CL? https://codereview.chromium.org/1765723002/diff/20001/cc/scheduler/scheduler_unittest.cc File ...
4 years, 9 months ago (2016-03-09 00:14:57 UTC) #8
enne (OOO)
On 2016/03/09 at 00:14:57, sunnyps wrote: > Now that we're not using BeginFrameSourceMultiplexer, can we ...
4 years, 9 months ago (2016-03-09 01:17:05 UTC) #9
Sami
Still lgtm. https://codereview.chromium.org/1765723002/diff/1/cc/trees/single_thread_proxy.h File cc/trees/single_thread_proxy.h (right): https://codereview.chromium.org/1765723002/diff/1/cc/trees/single_thread_proxy.h#newcode147 cc/trees/single_thread_proxy.h:147: scoped_ptr<BeginFrameSource> begin_frame_source_; On 2016/03/08 21:38:02, enne wrote: ...
4 years, 9 months ago (2016-03-09 14:36:23 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1765723002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1765723002/60001
4 years, 9 months ago (2016-03-09 18:02:57 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1765723002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1765723002/60001
4 years, 9 months ago (2016-03-09 21:02:26 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/127837)
4 years, 9 months ago (2016-03-09 21:39:29 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1765723002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1765723002/60001
4 years, 9 months ago (2016-03-10 19:40:31 UTC) #20
enne (OOO)
Thanks android webview tests for catching a legit dcheck! Not using the multiplexer did remove ...
4 years, 9 months ago (2016-03-10 22:38:19 UTC) #22
enne (OOO)
More specifically the DCHECK that's being hit is https://code.google.com/p/chromium/codesearch#chromium/src/cc/scheduler/begin_frame_source.cc&l=42
4 years, 9 months ago (2016-03-10 22:39:06 UTC) #23
enne (OOO)
DCHECK should be fixed by https://codereview.chromium.org/1789803003
4 years, 9 months ago (2016-03-14 23:33:13 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1765723002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1765723002/80001
4 years, 9 months ago (2016-03-14 23:33:41 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/83710)
4 years, 9 months ago (2016-03-15 00:46:51 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1765723002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1765723002/80001
4 years, 9 months ago (2016-03-16 20:03:28 UTC) #31
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 9 months ago (2016-03-16 21:51:22 UTC) #32
commit-bot: I haz the power
4 years, 9 months ago (2016-03-16 21:53:13 UTC) #34
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/b9bf377e238af579e4b6dd01cb4007ba712da742
Cr-Commit-Position: refs/heads/master@{#381558}

Powered by Google App Engine
This is Rietveld 408576698