Index: cc/resources/worker_pool.h |
diff --git a/cc/resources/worker_pool.h b/cc/resources/worker_pool.h |
old mode 100644 |
new mode 100755 |
index cc8c39f3642a0997bc990ba9484aab87612909df..d6ed90e2453eae4c28059e9f82a054729c37999a |
--- a/cc/resources/worker_pool.h |
+++ b/cc/resources/worker_pool.h |
@@ -108,6 +108,9 @@ class CC_EXPORT WorkerPool { |
// Force a check for completed tasks. |
virtual void CheckForCompletedTasks(); |
+ // Changed the access specifier to be available for Lazy Instance |
+ class Inner; |
reveman
2013/11/21 16:36:10
This doesn't have to and I don't think it should b
|
+ |
protected: |
// A task graph contains a unique set of tasks with edges between |
// dependencies pointing in the direction of the dependents. Each task |
@@ -125,17 +128,21 @@ class CC_EXPORT WorkerPool { |
void SetTaskGraph(TaskGraph* graph); |
private: |
- class Inner; |
- friend class Inner; |
- |
typedef std::vector<scoped_refptr<internal::WorkerPoolTask> > TaskVector; |
+ // Pulled the task graphs out of Inner |
+ // This set contains all pending tasks. |
+ GraphNodeMap pending_tasks_; |
+ |
+ // Completed tasks not yet collected by origin thread. |
+ TaskVector completed_tasks_; |
+ |
+ // This set contains all currently running tasks. |
+ GraphNodeMap running_tasks_; |
+ |
void ProcessCompletedTasks(const TaskVector& completed_tasks); |
bool in_dispatch_completion_callbacks_; |
- |
- // Hide the gory details of the worker pool in |inner_|. |
- const scoped_ptr<Inner> inner_; |
}; |
} // namespace cc |