| Index: cc/resources/zero_copy_raster_worker_pool.h
|
| diff --git a/cc/resources/image_raster_worker_pool.h b/cc/resources/zero_copy_raster_worker_pool.h
|
| similarity index 70%
|
| rename from cc/resources/image_raster_worker_pool.h
|
| rename to cc/resources/zero_copy_raster_worker_pool.h
|
| index ae9041f7751d675b47d5fc14b0de92ef05976658..4e4280e43ef7d074b176e64298bcfb29e88baac9 100644
|
| --- a/cc/resources/image_raster_worker_pool.h
|
| +++ b/cc/resources/zero_copy_raster_worker_pool.h
|
| @@ -2,8 +2,8 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#ifndef CC_RESOURCES_IMAGE_RASTER_WORKER_POOL_H_
|
| -#define CC_RESOURCES_IMAGE_RASTER_WORKER_POOL_H_
|
| +#ifndef CC_RESOURCES_ZERO_COPY_RASTER_WORKER_POOL_H_
|
| +#define CC_RESOURCES_ZERO_COPY_RASTER_WORKER_POOL_H_
|
|
|
| #include "base/memory/weak_ptr.h"
|
| #include "base/values.h"
|
| @@ -19,11 +19,11 @@ class ConvertableToTraceFormat;
|
| namespace cc {
|
| class ResourceProvider;
|
|
|
| -class CC_EXPORT ImageRasterWorkerPool : public RasterWorkerPool,
|
| - public Rasterizer,
|
| - public RasterizerTaskClient {
|
| +class CC_EXPORT ZeroCopyRasterWorkerPool : public RasterWorkerPool,
|
| + public Rasterizer,
|
| + public RasterizerTaskClient {
|
| public:
|
| - virtual ~ImageRasterWorkerPool();
|
| + virtual ~ZeroCopyRasterWorkerPool();
|
|
|
| static scoped_ptr<RasterWorkerPool> Create(
|
| base::SequencedTaskRunner* task_runner,
|
| @@ -45,9 +45,9 @@ class CC_EXPORT ImageRasterWorkerPool : public RasterWorkerPool,
|
| virtual void ReleaseBufferForRaster(scoped_ptr<RasterBuffer> buffer) OVERRIDE;
|
|
|
| protected:
|
| - ImageRasterWorkerPool(base::SequencedTaskRunner* task_runner,
|
| - TaskGraphRunner* task_graph_runner,
|
| - ResourceProvider* resource_provider);
|
| + ZeroCopyRasterWorkerPool(base::SequencedTaskRunner* task_runner,
|
| + TaskGraphRunner* task_graph_runner,
|
| + ResourceProvider* resource_provider);
|
|
|
| private:
|
| void OnRasterFinished(TaskSet task_set);
|
| @@ -68,11 +68,12 @@ class CC_EXPORT ImageRasterWorkerPool : public RasterWorkerPool,
|
| TaskGraph graph_;
|
| Task::Vector completed_tasks_;
|
|
|
| - base::WeakPtrFactory<ImageRasterWorkerPool> raster_finished_weak_ptr_factory_;
|
| + base::WeakPtrFactory<ZeroCopyRasterWorkerPool>
|
| + raster_finished_weak_ptr_factory_;
|
|
|
| - DISALLOW_COPY_AND_ASSIGN(ImageRasterWorkerPool);
|
| + DISALLOW_COPY_AND_ASSIGN(ZeroCopyRasterWorkerPool);
|
| };
|
|
|
| } // namespace cc
|
|
|
| -#endif // CC_RESOURCES_IMAGE_RASTER_WORKER_POOL_H_
|
| +#endif // CC_RESOURCES_ZERO_COPY_RASTER_WORKER_POOL_H_
|
|
|