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

Unified Diff: cc/resources/pixel_buffer_raster_worker_pool.h

Issue 144463012: cc: Reuse the same TaskGraph and completed tasks vector. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update comments Created 6 years, 10 months 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
« no previous file with comments | « cc/resources/image_raster_worker_pool.cc ('k') | cc/resources/pixel_buffer_raster_worker_pool.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/pixel_buffer_raster_worker_pool.h
diff --git a/cc/resources/pixel_buffer_raster_worker_pool.h b/cc/resources/pixel_buffer_raster_worker_pool.h
index b3e1893e1efb4501e68c9da3947d08029a1908df..682bba40013cefd5221cfb256dcefc8faff0e85d 100644
--- a/cc/resources/pixel_buffer_raster_worker_pool.h
+++ b/cc/resources/pixel_buffer_raster_worker_pool.h
@@ -89,6 +89,11 @@ class CC_EXPORT PixelBufferRasterWorkerPool : public RasterWorkerPool {
bool raster_finished_task_pending_;
bool raster_required_for_activation_finished_task_pending_;
+ // Task graph used when scheduling tasks and vector used to gather
+ // completed tasks.
+ internal::TaskGraph graph_;
+ internal::Task::Vector completed_tasks_;
+
base::WeakPtrFactory<PixelBufferRasterWorkerPool> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(PixelBufferRasterWorkerPool);
« no previous file with comments | « cc/resources/image_raster_worker_pool.cc ('k') | cc/resources/pixel_buffer_raster_worker_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698