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

Unified Diff: cc/resources/worker_pool.h

Issue 73923003: Shared Raster Worker Threads (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: WIP - Mapped Task Pool for Worker Threads Created 7 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: 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..230b275cbd49d819dfe01f4f49cb628be987ed62
--- a/cc/resources/worker_pool.h
+++ b/cc/resources/worker_pool.h
@@ -125,17 +125,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
« no previous file with comments | « cc/base/switches.cc ('k') | cc/resources/worker_pool.cc » ('j') | cc/resources/worker_pool.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698