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

Issue 1914373004: scheduler: Only prioritize rAF if it is fast (Closed)

Created:
4 years, 7 months ago by Sami
Modified:
4 years, 7 months ago
CC:
chromium-reviews, scheduler-bugs_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

scheduler: Only prioritize rAF if it is fast To avoid starving other tasks, only prioritize main thread compositing (i.e., requestAnimationFrame) if there is more than 80% idle time left in a frame. This can reduce animation frame rate on sites which can't keep up with the display refresh rate, but will ensure other tasks (e.g., postMessage) aren't starved as a side-effect. BUG=600385 Committed: https://crrev.com/6f3d26fe1385dc74f22bf2cf6bddc6830dd00d6c Cr-Commit-Position: refs/heads/master@{#391221}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Require 20% idle time, add tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+98 lines, -2 lines) Patch
M components/scheduler/renderer/renderer_scheduler_impl.cc View 1 4 chunks +17 lines, -2 lines 0 comments Download
M components/scheduler/renderer/renderer_scheduler_impl_unittest.cc View 1 1 chunk +81 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (7 generated)
alex clarke (OOO till 29th)
https://codereview.chromium.org/1914373004/diff/1/components/scheduler/renderer/renderer_scheduler_impl.cc File components/scheduler/renderer/renderer_scheduler_impl.cc (right): https://codereview.chromium.org/1914373004/diff/1/components/scheduler/renderer/renderer_scheduler_impl.cc#newcode687 components/scheduler/renderer/renderer_scheduler_impl.cc:687: base::TimeDelta::FromSeconds(0); As discussed off line I'm wondering if this ...
4 years, 7 months ago (2016-05-03 09:47:01 UTC) #2
Sami
https://codereview.chromium.org/1914373004/diff/1/components/scheduler/renderer/renderer_scheduler_impl.cc File components/scheduler/renderer/renderer_scheduler_impl.cc (right): https://codereview.chromium.org/1914373004/diff/1/components/scheduler/renderer/renderer_scheduler_impl.cc#newcode687 components/scheduler/renderer/renderer_scheduler_impl.cc:687: base::TimeDelta::FromSeconds(0); On 2016/05/03 09:47:01, alex clarke wrote: > As ...
4 years, 7 months ago (2016-05-03 12:50:00 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1914373004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1914373004/20001
4 years, 7 months ago (2016-05-03 12:50:32 UTC) #6
alex clarke (OOO till 29th)
lgtm
4 years, 7 months ago (2016-05-03 13:05:03 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1914373004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1914373004/20001
4 years, 7 months ago (2016-05-03 13:12:38 UTC) #10
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 7 months ago (2016-05-03 13:40:53 UTC) #12
commit-bot: I haz the power
4 years, 7 months ago (2016-05-03 13:42:07 UTC) #14
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/6f3d26fe1385dc74f22bf2cf6bddc6830dd00d6c
Cr-Commit-Position: refs/heads/master@{#391221}

Powered by Google App Engine
This is Rietveld 408576698