Commit 3191760f authored by altimin's avatar altimin Committed by Commit bot

[scheduler] Always run task queue observer callback for delayed work.

Run task queue observer callback even when there is immediate work
availaible. This will prevent some renderers from stucking in a
throttled state with a fence.

This is a temporary solution enabling delphick@ to revert his patch.
A proper fix and test coverage will come later.

R=skyostil@chromium.org
CC=delphick@chromium.org
BUG=710095

Review-Url: https://codereview.chromium.org/2844223004
Cr-Commit-Position: refs/heads/master@{#467956}
parent 7d26f40a
......@@ -890,10 +890,8 @@ void TaskQueueImpl::ScheduleDelayedWorkInTimeDomain(base::TimeTicks now) {
this, main_thread_only().delayed_incoming_queue.top().delayed_wake_up(),
now);
if (!HasPendingImmediateWork()) {
NotifyWakeUpChangedOnMainThread(
main_thread_only().delayed_incoming_queue.top().delayed_run_time);
}
NotifyWakeUpChangedOnMainThread(
main_thread_only().delayed_incoming_queue.top().delayed_run_time);
}
void TaskQueueImpl::NotifyWakeUpChangedOnMainThread(base::TimeTicks wake_up) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment