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

Issue 2392113003: Reland of cc: Remove frame queuing from the scheduler. (Closed)

Created:
4 years, 2 months ago by sunnyps
Modified:
4 years, 2 months ago
CC:
cc-bugs_chromium.org, chromium-reviews, scheduler-bugs_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Reland of cc: Remove frame queuing from the scheduler. Original issue's description: > cc: Remove frame queuing from the scheduler. > > CC scheduler has a frame queuing mechanism called "retro frames". This > has been responsible for a lot of complexity and hard to fix bugs. The > original intent for adding retro frames was to allow the scheduler to > handle multiple frames in flight but that goal doesn't seem feasible or > even desirable any more. This CL removes the retro frames queue and > instead makes the Scheduler end the previous frame when it receives a > BeginFrame message. > > One surprising behavior was that SyntheticBFS MISSED frames would be > queued as retro frames and this would convert the synchronous begin > frame call (inside Scheduler::ProcessScheduledActions) to an > asynchronous retro frame PostTask. To work around this the Scheduler > keeps track of a single CancelableClosure that's used for MISSED frames. > > The above behavior was also causing the BeginFramesNotFromClient tests > to work even though there was an extra MISSED frame in the queue. This > is more elegantly solved in another way by using frame number to advance > the task runner instead of just running pending tasks. > > Lastly SchedulerStateMachine is modified so that it's possible to end > the previous frame and still have the same behavior as before in the > commit to active tree (browser compositor) mode. R=brianderson@chromium.org,danakj@chromium.org,enne@chromium.org BUG=602485, 644992, 651387 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel Committed: https://crrev.com/da928f0adc826e2e5e32ba08da7019eb9a0ed912 Cr-Commit-Position: refs/heads/master@{#424027}

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : Notify scheduler of context loss on compositor teardown. #

Patch Set 4 : Add a way to stop the scheduler. #

Patch Set 5 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+206 lines, -634 lines) Patch
M cc/scheduler/scheduler.h View 1 2 3 3 chunks +7 lines, -5 lines 0 comments Download
M cc/scheduler/scheduler.cc View 1 2 3 12 chunks +75 lines, -124 lines 0 comments Download
M cc/scheduler/scheduler_state_machine.h View 2 chunks +3 lines, -2 lines 0 comments Download
M cc/scheduler/scheduler_state_machine.cc View 11 chunks +34 lines, -36 lines 0 comments Download
M cc/scheduler/scheduler_state_machine_unittest.cc View 2 chunks +30 lines, -37 lines 0 comments Download
M cc/scheduler/scheduler_unittest.cc View 1 2 3 8 chunks +38 lines, -400 lines 0 comments Download
M cc/surfaces/direct_compositor_frame_sink.cc View 1 2 3 4 2 chunks +2 lines, -3 lines 0 comments Download
M cc/test/scheduler_test_common.h View 2 chunks +4 lines, -5 lines 0 comments Download
M cc/test/test_compositor_frame_sink.h View 1 2 3 4 2 chunks +1 line, -3 lines 0 comments Download
M cc/test/test_compositor_frame_sink.cc View 1 2 3 4 4 chunks +4 lines, -13 lines 0 comments Download
M cc/trees/proxy_impl.cc View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M cc/trees/single_thread_proxy.cc View 1 2 3 1 chunk +5 lines, -4 lines 0 comments Download

Messages

Total messages: 16 (11 generated)
sunnyps
Trying to reland this again. This fixes the crash in crbug.com/651387 (activation being performed inside ...
4 years, 2 months ago (2016-10-07 03:10:04 UTC) #6
enne (OOO)
I do agree that we're at the point where the "stop everything" state is the ...
4 years, 2 months ago (2016-10-07 18:41:31 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2392113003/80001
4 years, 2 months ago (2016-10-07 23:56:42 UTC) #13
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 2 months ago (2016-10-08 00:33:41 UTC) #14
commit-bot: I haz the power
4 years, 2 months ago (2016-10-08 00:37:32 UTC) #16
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/da928f0adc826e2e5e32ba08da7019eb9a0ed912
Cr-Commit-Position: refs/heads/master@{#424027}

Powered by Google App Engine
This is Rietveld 408576698