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

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

Issue 2572893002: [Reland] Dont post delayed DoWork for disabled queues. (Closed)
Patch Set: Fix perftest Created 4 years 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 cd5df92d30a5d70bacc26301c3b29bcdcc7e7fd2..37f92f8d54b9d1f148daf9cfe76efcc502678f57 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
@@ -74,8 +74,12 @@ class BLINK_PLATFORM_EXPORT TaskQueueManager
// runner. These delayed tasks are de-duplicated. Must be called on the thread
// this class was created on.
void MaybeScheduleDelayedWork(const tracked_objects::Location& from_here,
- base::TimeTicks now,
- base::TimeDelta delay);
+ LazyNow* lazy_now,
+ base::TimeTicks run_time);
+
+ // Cancels a delayed task to process work at |run_time|, previously requested
+ // with MaybeScheduleDelayedWork.
+ void CancelDelayedWork(base::TimeTicks run_time);
// Set the number of tasks executed in a single invocation of the task queue
// manager. Increasing the batch size can reduce the overhead of yielding

Powered by Google App Engine
This is Rietveld 408576698