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

Unified Diff: content/renderer/scheduler/task_queue_manager.h

Issue 962273002: Experimental: Chrome side of killing the blink timer heap (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 9 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
« no previous file with comments | « cc/test/ordered_simple_task_runner.cc ('k') | content/renderer/scheduler/task_queue_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/scheduler/task_queue_manager.h
diff --git a/content/renderer/scheduler/task_queue_manager.h b/content/renderer/scheduler/task_queue_manager.h
index 8f32b93a0ace6674cfa227db573ca5bad6f4540d..d57f4ebb19a18517f026799c291999acfc70ef24 100644
--- a/content/renderer/scheduler/task_queue_manager.h
+++ b/content/renderer/scheduler/task_queue_manager.h
@@ -128,13 +128,14 @@ class CONTENT_EXPORT TaskQueueManager {
// Use the selector to choose a pending task and run it.
void DoWork(bool posted_from_main_thread);
+ // Delayed Tasks with run_times <= |now| are enqueued onto their work queues.
// Reloads any empty work queues which have automatic pumping enabled and
// which are eligible to be auto pumped based on the |previous_task| which was
// run. Call with an empty |previous_task| if no task was just run. Returns
// true if any work queue has tasks after doing this.
// |next_pending_delayed_task| should be the time of the next known delayed
// task. It is updated if any task is found which should run earlier.
- bool UpdateWorkQueues(base::TimeTicks* next_pending_delayed_task,
+ bool UpdateWorkQueues(base::TimeTicks now,
const base::PendingTask* previous_task);
// Chooses the next work queue to service. Returns true if |out_queue_index|
« no previous file with comments | « cc/test/ordered_simple_task_runner.cc ('k') | content/renderer/scheduler/task_queue_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698