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

Unified Diff: cc/resources/image_raster_worker_pool.h

Issue 523243002: cc: Generalize raster task notifications (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tasks_in_set -> tasks Created 6 years, 3 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_copy_raster_worker_pool.cc ('k') | cc/resources/image_raster_worker_pool.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/image_raster_worker_pool.h
diff --git a/cc/resources/image_raster_worker_pool.h b/cc/resources/image_raster_worker_pool.h
index ca0bbc26a1e867a419047809da286e355318fe2d..daa013384dc534e5eca7d236bed95a2c86a0cbd5 100644
--- a/cc/resources/image_raster_worker_pool.h
+++ b/cc/resources/image_raster_worker_pool.h
@@ -49,8 +49,7 @@ class CC_EXPORT ImageRasterWorkerPool : public RasterWorkerPool,
ResourceProvider* resource_provider);
private:
- void OnRasterFinished();
- void OnRasterRequiredForActivationFinished();
+ void OnRasterFinished(TaskSet task_set);
scoped_refptr<base::debug::ConvertableToTraceFormat> StateAsValue() const;
scoped_refptr<base::SequencedTaskRunner> task_runner_;
@@ -59,11 +58,9 @@ class CC_EXPORT ImageRasterWorkerPool : public RasterWorkerPool,
RasterizerClient* client_;
ResourceProvider* resource_provider_;
- bool raster_tasks_pending_;
- bool raster_tasks_required_for_activation_pending_;
+ TaskSetCollection raster_pending_;
- scoped_refptr<RasterizerTask> raster_finished_task_;
- scoped_refptr<RasterizerTask> raster_required_for_activation_finished_task_;
+ scoped_refptr<RasterizerTask> raster_finished_tasks_[kNumberOfTaskSets];
// Task graph used when scheduling tasks and vector used to gather
// completed tasks.
« no previous file with comments | « cc/resources/image_copy_raster_worker_pool.cc ('k') | cc/resources/image_raster_worker_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698