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

Unified Diff: components/scheduler/child/task_queue_manager.cc

Issue 1303353003: scheduler: Disable expensive timers during main thread user input (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comments. Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/scheduler/child/task_queue_manager.cc
diff --git a/components/scheduler/child/task_queue_manager.cc b/components/scheduler/child/task_queue_manager.cc
index 7d0d1ad3e054bf0f1b71a23ff010ce62d7ea73a2..8979750550375422fb7335971b78484e6341a1a3 100644
--- a/components/scheduler/child/task_queue_manager.cc
+++ b/components/scheduler/child/task_queue_manager.cc
@@ -337,6 +337,7 @@ bool TaskQueueManager::ProcessTaskFromWorkQueue(
if (queue->GetShouldNotifyObservers()) {
FOR_EACH_OBSERVER(base::MessageLoop::TaskObserver, task_observers_,
WillProcessTask(pending_task));
+ queue->NotifyWillProcessTask(pending_task);
}
TRACE_EVENT1(disabled_by_default_tracing_category_,
"Run Task From Queue", "queue", queue->GetName());
@@ -350,6 +351,7 @@ bool TaskQueueManager::ProcessTaskFromWorkQueue(
if (queue->GetShouldNotifyObservers()) {
FOR_EACH_OBSERVER(base::MessageLoop::TaskObserver, task_observers_,
DidProcessTask(pending_task));
+ queue->NotifyDidProcessTask(pending_task);
}
pending_task.task.Reset();
« no previous file with comments | « components/scheduler/child/task_queue_impl.cc ('k') | components/scheduler/child/task_queue_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698