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

Unified Diff: third_party/WebKit/Source/platform/scheduler/base/task_queue_manager.h

Issue 2276353002: Remove after wakeup logic and replace PumpTask with Fences (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Slight simplification Created 4 years, 3 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: third_party/WebKit/Source/platform/scheduler/base/task_queue_manager.h
diff --git a/third_party/WebKit/Source/platform/scheduler/base/task_queue_manager.h b/third_party/WebKit/Source/platform/scheduler/base/task_queue_manager.h
index f268628b20ea48325bbad1c69903d7e4dfdd9f10..88627cae6725a87fa9fc9a5136bec9d6d09ae7e7 100644
--- a/third_party/WebKit/Source/platform/scheduler/base/task_queue_manager.h
+++ b/third_party/WebKit/Source/platform/scheduler/base/task_queue_manager.h
@@ -164,14 +164,9 @@ class BLINK_PLATFORM_EXPORT TaskQueueManager
// Use the selector to choose a pending task and run it.
void DoWork(base::TimeTicks run_time, bool from_main_thread);
- // Delayed Tasks with run_times <= Now() are enqueued onto the work queue.
- // 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 and |should_trigger_wakeup|. Call with an empty |previous_task| if no
- // task was just run.
- void UpdateWorkQueues(bool should_trigger_wakeup,
- const internal::TaskQueueImpl::Task* previous_task,
- LazyNow lazy_now);
+ // Delayed Tasks with run_times <= Now() are enqueued onto the work queue and
+ // reloads any empty work queues.
+ void UpdateWorkQueues(LazyNow lazy_now);
// Chooses the next work queue to service. Returns true if |out_queue|
// indicates the queue from which the next task should be run, false to
@@ -186,9 +181,7 @@ class BLINK_PLATFORM_EXPORT TaskQueueManager
EXECUTED,
TASK_QUEUE_MANAGER_DELETED
};
- ProcessTaskResult ProcessTaskFromWorkQueue(
- internal::WorkQueue* work_queue,
- internal::TaskQueueImpl::Task* out_previous_task);
+ ProcessTaskResult ProcessTaskFromWorkQueue(internal::WorkQueue* work_queue);
bool RunsTasksOnCurrentThread() const;
bool PostNonNestableDelayedTask(const tracked_objects::Location& from_here,

Powered by Google App Engine
This is Rietveld 408576698