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

Unified Diff: cc/resources/image_copy_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/gpu_raster_worker_pool.cc ('k') | cc/resources/image_copy_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_copy_raster_worker_pool.h
diff --git a/cc/resources/image_copy_raster_worker_pool.h b/cc/resources/image_copy_raster_worker_pool.h
index faa3f1aa7dff4490100a69c753edca0ce7998c33..3515b97cc97622a86a5c8c3788579d0202730568 100644
--- a/cc/resources/image_copy_raster_worker_pool.h
+++ b/cc/resources/image_copy_raster_worker_pool.h
@@ -81,8 +81,7 @@ class CC_EXPORT ImageCopyRasterWorkerPool : public RasterWorkerPool,
ScopedResource* resource;
};
- void OnRasterFinished();
- void OnRasterRequiredForActivationFinished();
+ void OnRasterFinished(TaskSet task_set);
void FlushCopies();
scoped_refptr<base::debug::ConvertableToTraceFormat> StateAsValue() const;
void StagingStateAsValueInto(base::debug::TracedValue* staging_state) const;
@@ -99,11 +98,9 @@ class CC_EXPORT ImageCopyRasterWorkerPool : public RasterWorkerPool,
bool has_performed_copy_since_last_flush_;
- 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/gpu_raster_worker_pool.cc ('k') | cc/resources/image_copy_raster_worker_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698