Chromium Code Reviews| 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 5859a5291b53f078cd90168d0d4e9ff0b848802c..4e2bee0ad121cc5a60273cf8c34b5fd996d677c4 100644 |
| --- a/content/renderer/scheduler/task_queue_manager.h |
| +++ b/content/renderer/scheduler/task_queue_manager.h |
| @@ -29,6 +29,7 @@ class TestNowSource; |
| namespace content { |
| namespace internal { |
| +class LazyNow; |
| class TaskQueue; |
| } |
| class TaskQueueSelector; |
| @@ -116,6 +117,7 @@ class CONTENT_EXPORT TaskQueueManager { |
| void SetTimeSourceForTesting(scoped_refptr<cc::TestNowSource> time_source); |
| private: |
| + friend class internal::LazyNow; |
| friend class internal::TaskQueue; |
| // Called by the task queue to register a new pending task and allocate a |
| @@ -130,14 +132,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. |
|
Sami
2015/03/17 18:40:03
s/their work queues/the work queue/?
alex clarke (OOO till 29th)
2015/03/18 10:49:07
Done.
|
| // 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, |
| - const base::PendingTask* previous_task); |
| + bool UpdateWorkQueues(const base::PendingTask* previous_task); |
| // Chooses the next work queue to service. Returns true if |out_queue_index| |
| // indicates the queue from which the next task should be run, false to |