Chromium Code Reviews| 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..95d34cba73b9707296bbc5b275517a91d00f9b03 100644 |
| --- a/cc/resources/raster_worker_pool.h |
| +++ b/cc/resources/raster_worker_pool.h |
| @@ -18,9 +18,24 @@ class CC_EXPORT RasterWorkerPool { |
| static unsigned kOnDemandRasterTaskPriority; |
| static unsigned kBenchmarkRasterTaskPriority; |
| static unsigned kRasterFinishedTaskPriority; |
| - static unsigned kRasterRequiredForActivationFinishedTaskPriority; |
| + static unsigned kRasterTaskSetFinishedTaskPriority; |
|
reveman
2014/09/10 16:41:50
I think you can just remove this and use kRasterFi
ernstm
2014/09/10 18:26:19
Done.
|
| static unsigned kRasterTaskPriorityBase; |
| + class TaskSetSizes { |
| + public: |
| + TaskSetSizes(); |
| + explicit TaskSetSizes(const RasterTaskQueue* queue); |
| + 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 +54,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|. |