diff options
author | reveman@chromium.org <reveman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-23 09:46:50 +0000 |
---|---|---|
committer | reveman@chromium.org <reveman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-23 09:46:50 +0000 |
commit | 00d92d32d28ccbca0241051a628d2ed5f982d1cf (patch) | |
tree | f736a9d9b72d97d00ae278beb66dcb7e745d14dd /cc/resources/image_raster_worker_pool.h | |
parent | 8e1d91e3e45d157f0d279284bc48f47194559d06 (diff) | |
download | chromium_src-00d92d32d28ccbca0241051a628d2ed5f982d1cf.zip chromium_src-00d92d32d28ccbca0241051a628d2ed5f982d1cf.tar.gz chromium_src-00d92d32d28ccbca0241051a628d2ed5f982d1cf.tar.bz2 |
Re-land: cc: Remove WorkerPool class and instead use TaskGraphRunner directly.
Removes the unnecessary WorkerPool layer. This makes the job
of the TaskGraphRunner more clear and will allow us to remove
some complexity and unnecessary heap allocations from the
RasterWorkerPool code in follow up patches.
Also moves the kNumRasterTasks switch to content/.
Refactor only, no changes in behavior.
BUG=331844
Review URL: https://codereview.chromium.org/141163019
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@246554 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/resources/image_raster_worker_pool.h')
-rw-r--r-- | cc/resources/image_raster_worker_pool.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cc/resources/image_raster_worker_pool.h b/cc/resources/image_raster_worker_pool.h index 3279bd2..c9a28b6 100644 --- a/cc/resources/image_raster_worker_pool.h +++ b/cc/resources/image_raster_worker_pool.h @@ -16,7 +16,7 @@ class CC_EXPORT ImageRasterWorkerPool : public RasterWorkerPool { static scoped_ptr<RasterWorkerPool> Create( ResourceProvider* resource_provider, ContextProvider* context_provider, - GLenum texture_target) { + unsigned texture_target) { return make_scoped_ptr<RasterWorkerPool>( new ImageRasterWorkerPool(resource_provider, context_provider, @@ -25,7 +25,7 @@ class CC_EXPORT ImageRasterWorkerPool : public RasterWorkerPool { // Overridden from RasterWorkerPool: virtual void ScheduleTasks(RasterTask::Queue* queue) OVERRIDE; - virtual GLenum GetResourceTarget() const OVERRIDE; + virtual unsigned GetResourceTarget() const OVERRIDE; virtual ResourceFormat GetResourceFormat() const OVERRIDE; virtual void OnRasterTasksFinished() OVERRIDE; virtual void OnRasterTasksRequiredForActivationFinished() OVERRIDE; @@ -33,7 +33,7 @@ class CC_EXPORT ImageRasterWorkerPool : public RasterWorkerPool { private: ImageRasterWorkerPool(ResourceProvider* resource_provider, ContextProvider* context_provider, - GLenum texture_target); + unsigned texture_target); void OnRasterTaskCompleted( scoped_refptr<internal::RasterWorkerPoolTask> task, bool was_canceled); @@ -42,14 +42,14 @@ class CC_EXPORT ImageRasterWorkerPool : public RasterWorkerPool { static void CreateGraphNodeForImageTask( internal::WorkerPoolTask* image_task, - const TaskVector& decode_tasks, + const internal::Task::Vector& decode_tasks, unsigned priority, bool is_required_for_activation, internal::GraphNode* raster_required_for_activation_finished_node, internal::GraphNode* raster_finished_node, TaskGraph* graph); - const GLenum texture_target_; + const unsigned texture_target_; TaskMap image_tasks_; |