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 | 
| old mode 100644 | 
| new mode 100755 | 
| index fac2fd845ce81db11136a986f0437db89f6e8867..d7b99bc9851fbfa68d83a8a0a02c5fd13616b6fa | 
| --- a/cc/resources/raster_worker_pool.h | 
| +++ b/cc/resources/raster_worker_pool.h | 
| @@ -188,6 +188,14 @@ class CC_EXPORT RasterWorkerPool : public WorkerPool { | 
| // Returns the format that needs to be used for raster task resources. | 
| virtual ResourceFormat GetResourceFormat() const = 0; | 
| + // Sets the number of threads to use for running raster tasks. | 
| + // Can only be called once prior to GetNumRasterThreads(). | 
| + // Caller is responsible for correct ordering. | 
| + static void SetNumRasterThreads(int num_threads); | 
| + | 
| + // Gets the number of threads to use for running raster tasks. | 
| + static int GetNumRasterThreads(); | 
| 
 
reveman
2014/01/06 20:01:35
Let's just declare this in WorkerPool for now. I'l
 
 | 
| + | 
| // TODO(vmpstr): Figure out an elegant way to not pass this many parameters. | 
| static RasterTask CreateRasterTask( | 
| const Resource* resource, | 
| @@ -218,7 +226,7 @@ class CC_EXPORT RasterWorkerPool : public WorkerPool { | 
| typedef base::hash_map<TaskMapKey, | 
| scoped_refptr<internal::WorkerPoolTask> > TaskMap; | 
| - RasterWorkerPool(ResourceProvider* resource_provider, size_t num_threads); | 
| + explicit RasterWorkerPool(ResourceProvider* resource_provider); | 
| virtual void OnRasterTasksFinished() = 0; | 
| virtual void OnRasterTasksRequiredForActivationFinished() = 0; |