| Index: cc/resources/task_graph_runner.h
|
| diff --git a/cc/resources/task_graph_runner.h b/cc/resources/task_graph_runner.h
|
| index af7c11650ce6011ecc90c626da5a1d53a3d4afa1..eb03467520f3c5cf82eec2be11a329650df62fae 100644
|
| --- a/cc/resources/task_graph_runner.h
|
| +++ b/cc/resources/task_graph_runner.h
|
| @@ -142,6 +142,10 @@ class CC_EXPORT TaskGraphRunner : public base::DelegateSimpleThread::Delegate {
|
| void CollectCompletedTasks(NamespaceToken token,
|
| Task::Vector* completed_tasks);
|
|
|
| + // Run one task on current thread. Returns false if no tasks are ready
|
| + // to run. This should only be used by tests.
|
| + bool RunTaskForTesting();
|
| +
|
| private:
|
| struct TaskNamespace {
|
| typedef std::vector<TaskNamespace*> Vector;
|
| @@ -192,6 +196,10 @@ class CC_EXPORT TaskGraphRunner : public base::DelegateSimpleThread::Delegate {
|
| // Overridden from base::DelegateSimpleThread:
|
| virtual void Run() OVERRIDE;
|
|
|
| + // Run next task. Caller must acquire |lock_| prior to calling this
|
| + // function and make sure at least one task is ready to run.
|
| + void RunTaskWithLockAcquired(int thread_index);
|
| +
|
| // This lock protects all members of this class. Do not read or modify
|
| // anything without holding this lock. Do not block while holding this
|
| // lock.
|
|
|