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

Unified Diff: cc/resources/raster_worker_pool.h

Issue 523243002: cc: Generalize raster task notifications (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Renaming 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
Index: cc/resources/raster_worker_pool.h
diff --git a/cc/resources/raster_worker_pool.h b/cc/resources/raster_worker_pool.h
index 5a9fd25137bdfe53f60c299c83cdbb0b7c1f2783..16e9c6e7ae5a33322e6ef3a09fb09f69ec3d5f30 100644
--- a/cc/resources/raster_worker_pool.h
+++ b/cc/resources/raster_worker_pool.h
@@ -18,9 +18,23 @@ class CC_EXPORT RasterWorkerPool {
static unsigned kOnDemandRasterTaskPriority;
static unsigned kBenchmarkRasterTaskPriority;
static unsigned kRasterFinishedTaskPriority;
- static unsigned kRasterRequiredForActivationFinishedTaskPriority;
static unsigned kRasterTaskPriorityBase;
+ class TaskSetSizes {
reveman 2014/09/12 16:33:51 While convenient, I find the use of this class wit
ernstm 2014/09/13 01:26:51 Done.
+ public:
+ TaskSetSizes();
+ explicit TaskSetSizes(const RasterTaskQueue* queue);
reveman 2014/09/12 16:33:51 nit: blank line between ctor/dtor and other functi
ernstm 2014/09/13 01:26:51 Done.
+ TaskSetCollection ToTaskSetCollection() const;
+ size_t& operator[](TaskSet task_set);
+ const size_t& operator[](TaskSet task_set) const;
+ bool operator==(const TaskSetSizes& other) const;
+ void operator+=(const TaskSetCollection& task_set_collection);
+ void operator-=(const TaskSetCollection& task_set_collection);
+
+ private:
+ size_t sizes_[kNumberOfTaskSets];
+ };
+
RasterWorkerPool();
virtual ~RasterWorkerPool();
@@ -39,15 +53,8 @@ class CC_EXPORT RasterWorkerPool {
// posts |callback| to |task_runner| when run.
static scoped_refptr<RasterizerTask> CreateRasterFinishedTask(
base::SequencedTaskRunner* task_runner,
- const base::Closure& callback);
-
- // Utility function that can be used to create a "raster required for
- // activation finished" task that posts |callback| to |task_runner| when run.
- static scoped_refptr<RasterizerTask>
- CreateRasterRequiredForActivationFinishedTask(
- size_t tasks_required_for_activation_count,
- base::SequencedTaskRunner* task_runner,
- const base::Closure& callback);
+ const base::Closure& callback,
+ base::debug::TraceEventSyntheticDelay* synthetic_delay);
// Utility function that can be used to call ::ScheduleOnOriginThread() for
// each task in |graph|.

Powered by Google App Engine
This is Rietveld 408576698