Chromium Code Reviews| 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 21c4aedc800ec0af9b8e848cf3d56a5873467575..360d062eea622ed9b28cea9944da1a59a7097a98 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); |
|
Sami
2017/01/27 12:36:25
What if one time domain accidentally cancels the w
alex clarke (OOO till 29th)
2017/01/30 18:24:01
As discussed offline I've added some code to track
|
| // 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 |