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

Issue 595973002: Moving background animation ticking from LayerTreeHostImpl into the Scheduler. (Closed)

Created:
6 years, 3 months ago by mithro-old
Modified:
6 years, 1 month ago
Reviewers:
danakj, ajuma, *brianderson, Sami
CC:
chromium-reviews, cc-bugs_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@scheduler-timesource-refactor
Project:
chromium
Visibility:
Public.

Description

Moving background animation ticking from LayerTreeHostImpl into the Scheduler. Background ticking currently happens in the LayerTreeHostImpl, this makes it very hard to preserve the monotonicity guarantee needed by frame times. http://crrev.com/267783004 set up the scheduler to become the source of background ticks and this CL makes use of that functionality. BUG=345459 Committed: https://crrev.com/4df3c4366015739a7c6b6c1539a8d7c9198e38ef Cr-Commit-Position: refs/heads/master@{#302757} Committed: https://crrev.com/185438b3e5e3f43ce2996da0022f510fbe193a6e Cr-Commit-Position: refs/heads/master@{#303423} Committed: https://crrev.com/719bf67948d010b5462993ee1b2697f437053c9c Cr-Commit-Position: refs/heads/master@{#303467}

Patch Set 1 #

Patch Set 2 : Rebase onto master. #

Patch Set 3 : Trying to get tests to pass.... #

Patch Set 4 : git cl try #

Patch Set 5 : Rebase onto master. #

Patch Set 6 : Fixing SchedulerStateMachineTests #

Patch Set 7 : Fighting flaky tests. #

Patch Set 8 : Rebase onto master. #

Patch Set 9 : ALL TESTS PASS LOCALLY!!!! #

Total comments: 14

Patch Set 10 : Rebase onto master. #

Patch Set 11 : Fix observer addition after Animate but before Draw. #

Patch Set 12 : Small fixes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+75 lines, -181 lines) Patch
M cc/animation/layer_animation_controller.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -1 line 0 comments Download
M cc/scheduler/scheduler.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -3 lines 0 comments Download
M cc/scheduler/scheduler_settings.h View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -0 lines 0 comments Download
M cc/scheduler/scheduler_settings.cc View 1 2 3 4 5 6 7 8 3 chunks +7 lines, -2 lines 0 comments Download
M cc/scheduler/scheduler_state_machine.cc View 1 2 3 4 5 6 7 8 2 chunks +1 line, -15 lines 0 comments Download
M cc/scheduler/scheduler_state_machine_unittest.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -0 lines 0 comments Download
M cc/test/layer_tree_test.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -1 line 0 comments Download
M cc/test/layer_tree_test.cc View 1 2 3 4 5 6 7 8 3 chunks +1 line, -8 lines 0 comments Download
M cc/trees/layer_tree_host_impl.h View 1 2 3 4 5 6 7 8 9 5 chunks +2 lines, -7 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 5 6 7 8 9 4 chunks +1 line, -99 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_animation.cc View 1 2 3 4 5 6 7 8 3 chunks +9 lines, -10 lines 0 comments Download
M cc/trees/layer_tree_settings.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M cc/trees/layer_tree_settings.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M cc/trees/single_thread_proxy.h View 1 2 3 4 5 6 7 8 2 chunks +1 line, -1 line 0 comments Download
M cc/trees/single_thread_proxy.cc View 1 2 3 4 5 6 7 8 9 10 chunks +25 lines, -19 lines 0 comments Download
M cc/trees/thread_proxy.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -1 line 0 comments Download
M cc/trees/thread_proxy.cc View 1 2 3 4 5 6 7 8 9 5 chunks +13 lines, -14 lines 0 comments Download

Messages

Total messages: 28 (7 generated)
mithro-old
Hi everyone, Now the scheduler is in a good place regarding BeginFrameSources I'm trying to ...
6 years, 2 months ago (2014-10-01 15:41:04 UTC) #3
danakj
+ajuma who can help answer these questions
6 years, 2 months ago (2014-10-01 15:44:24 UTC) #5
ajuma
On 2014/10/01 15:41:04, mithro wrote: > My two major questions are; > > * Why ...
6 years, 2 months ago (2014-10-01 17:03:59 UTC) #6
mithro-old
Can everyone please take another look? This CL now passes all the cc_unittests locally on ...
6 years, 1 month ago (2014-11-04 14:48:26 UTC) #7
brianderson
https://codereview.chromium.org/595973002/diff/460001/cc/scheduler/scheduler_settings.cc File cc/scheduler/scheduler_settings.cc (right): https://codereview.chromium.org/595973002/diff/460001/cc/scheduler/scheduler_settings.cc#newcode39 cc/scheduler/scheduler_settings.cc:39: 1.0 / settings.background_animation_rate)) { Should we rename the LT ...
6 years, 1 month ago (2014-11-04 18:54:39 UTC) #8
mithro-old
Thank you for your speedy review, specially while BlinkOn is happening, it's super appreciated. Tim ...
6 years, 1 month ago (2014-11-04 22:16:51 UTC) #9
brianderson
Thanks for the explanations, just one more question. https://codereview.chromium.org/595973002/diff/460001/cc/scheduler/scheduler_settings.cc File cc/scheduler/scheduler_settings.cc (right): https://codereview.chromium.org/595973002/diff/460001/cc/scheduler/scheduler_settings.cc#newcode39 cc/scheduler/scheduler_settings.cc:39: 1.0 ...
6 years, 1 month ago (2014-11-04 23:32:20 UTC) #10
mithro-old
Thanks once again Brian. Dana / Ali do you have any comments on this or ...
6 years, 1 month ago (2014-11-05 00:02:36 UTC) #12
brianderson
lgtm
6 years, 1 month ago (2014-11-05 00:41:40 UTC) #13
ajuma
lgtm too
6 years, 1 month ago (2014-11-05 01:10:29 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/595973002/460001
6 years, 1 month ago (2014-11-05 04:46:41 UTC) #16
commit-bot: I haz the power
Committed patchset #9 (id:460001)
6 years, 1 month ago (2014-11-05 05:30:55 UTC) #17
commit-bot: I haz the power
Patchset 9 (id:??) landed as https://crrev.com/4df3c4366015739a7c6b6c1539a8d7c9198e38ef Cr-Commit-Position: refs/heads/master@{#302757}
6 years, 1 month ago (2014-11-05 05:31:34 UTC) #18
mithro-old
A revert of this CL (patchset #9 id:460001) has been created in https://codereview.chromium.org/698413002/ by mithro@mithis.com. ...
6 years, 1 month ago (2014-11-05 07:35:58 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/595973002/480001
6 years, 1 month ago (2014-11-10 04:01:39 UTC) #21
commit-bot: I haz the power
Committed patchset #10 (id:480001)
6 years, 1 month ago (2014-11-10 04:50:40 UTC) #22
commit-bot: I haz the power
Patchset 10 (id:??) landed as https://crrev.com/185438b3e5e3f43ce2996da0022f510fbe193a6e Cr-Commit-Position: refs/heads/master@{#303423}
6 years, 1 month ago (2014-11-10 04:51:18 UTC) #23
mithro-old
A revert of this CL (patchset #10 id:480001) has been created in https://codereview.chromium.org/713783002/ by mithro@mithis.com. ...
6 years, 1 month ago (2014-11-10 06:20:16 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/595973002/520001
6 years, 1 month ago (2014-11-10 14:44:17 UTC) #26
commit-bot: I haz the power
Committed patchset #12 (id:520001)
6 years, 1 month ago (2014-11-10 15:37:01 UTC) #27
commit-bot: I haz the power
6 years, 1 month ago (2014-11-10 15:37:51 UTC) #28
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/719bf67948d010b5462993ee1b2697f437053c9c
Cr-Commit-Position: refs/heads/master@{#303467}

Powered by Google App Engine
This is Rietveld 408576698