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

Issue 2386183003: Revert of cc: Remove frame queuing from the scheduler. (patchset #14 id:400001 of https://coderevie… (Closed)

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

Description

Revert of cc: Remove frame queuing from the scheduler. (patchset #14 id:400001 of https://codereview.chromium.org/2339633003/ ) Reason for revert: Highly likely that this is causing the flakes we are seeing in http://crbug.com/645736 Original issue's description: > Reland of cc: Remove frame queuing from the scheduler. (patchset #1 id:1 of https://codereview.chromium.org/2336493002/ ) > > Reason for revert: > Reland after fixing screenshot grabber test and perf issues. > > Original issue's description: > > Revert of cc: Remove frame queuing from the scheduler. (patchset #3 id:40001 of https://codereview.chromium.org/2323063004/ ) > > > > Reason for revert: > > Broke ChromeScreenshotGrabberTest.TakeScreenshot on Linux ChromiumOS Tests (dbg)(1): https://build.chromium.org/p/chromium.chromiumos/builders/Linux%20ChromiumOS%20Tests%20%28dbg%29%281%29/builds/18015. > > > > 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,enne@chromium.org,danakj@chromium.org > > > BUG=602485, 644992 > > > CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel > > > > > > Committed: https://crrev.com/559280b26cc5672f5f054e8ac35281e804c14d78 > > > Cr-Commit-Position: refs/heads/master@{#417764} > > > > TBR=enne@chromium.org,brianderson@chromium.org,danakj@chromium.org,sunnyps@chromium.org > > # Not skipping CQ checks because original CL landed more than 1 days ago. > > BUG=602485, 644992 > > > > Committed: https://crrev.com/95beb47e50065959ee2f5b43cf431431e32e14cd > > Cr-Commit-Position: refs/heads/master@{#417895} > > TBR=enne@chromium.org,brianderson@chromium.org,danakj@chromium.org,sammc@chromium.org > # Not skipping CQ checks because original CL landed more than 1 days ago. > BUG=602485, 644992 > CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel > > Committed: https://crrev.com/864a70f6f93a87ff374bf2aea2494d4d7d0150d7 > Cr-Commit-Position: refs/heads/master@{#421268} TBR=enne@chromium.org,danakj@chromium.org,brianderson@chromium.org BUG=602485, 644992 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel Committed: https://crrev.com/5a28cd7dd0ac324e02428174ed3333dbe88edfcd Cr-Commit-Position: refs/heads/master@{#422595}

Patch Set 1 #

Patch Set 2 : fix revert #

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

Messages

Total messages: 10 (5 generated)
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/2386183003/1
4 years, 2 months ago (2016-10-03 20:26:35 UTC) #3
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/236692) win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, ...
4 years, 2 months ago (2016-10-03 21:09:26 UTC) #5
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/2386183003/20001
4 years, 2 months ago (2016-10-03 21:49:44 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 2 months ago (2016-10-03 23:28:29 UTC) #8
commit-bot: I haz the power
4 years, 2 months ago (2016-10-03 23:32:30 UTC) #10
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/5a28cd7dd0ac324e02428174ed3333dbe88edfcd
Cr-Commit-Position: refs/heads/master@{#422595}

Powered by Google App Engine
This is Rietveld 408576698