| Index: cc/resources/image_raster_worker_pool.h
|
| diff --git a/cc/resources/image_raster_worker_pool.h b/cc/resources/image_raster_worker_pool.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..f3c49a312d9c4db9d41cbb630792e58e60bf9c9f
|
| --- /dev/null
|
| +++ b/cc/resources/image_raster_worker_pool.h
|
| @@ -0,0 +1,44 @@
|
| +// Copyright 2013 The Chromium Authors. All rights reserved.
|
| +// 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_
|
| +
|
| +#include "cc/resources/raster_worker_pool.h"
|
| +
|
| +namespace cc {
|
| +
|
| +class ImageRasterWorkerPool : public RasterWorkerPool,
|
| + public WorkerPoolClient {
|
| + public:
|
| + virtual ~ImageRasterWorkerPool();
|
| +
|
| + static scoped_ptr<RasterWorkerPool> Create(
|
| + ResourceProvider* resource_provider, size_t num_threads) {
|
| + return make_scoped_ptr<RasterWorkerPool>(
|
| + new ImageRasterWorkerPool(resource_provider, num_threads));
|
| + }
|
| +
|
| + // Overridden from RasterWorkerPool:
|
| + virtual void ScheduleTasks(RasterTask::Queue* queue) OVERRIDE;
|
| +
|
| + private:
|
| + ImageRasterWorkerPool(ResourceProvider* resource_provider,
|
| + size_t num_threads);
|
| +
|
| + // Overridden from WorkerPoolClient:
|
| + virtual void DidFinishDispatchingWorkerPoolCompletionCallbacks() OVERRIDE {}
|
| +
|
| + void OnRasterTaskCompleted(
|
| + scoped_refptr<internal::RasterWorkerPoolTask> task, bool was_canceled);
|
| + void DidFinishRasterTask(internal::RasterWorkerPoolTask* task);
|
| +
|
| + TaskMap image_tasks_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(ImageRasterWorkerPool);
|
| +};
|
| +
|
| +} // namespace cc
|
| +
|
| +#endif // CC_RESOURCES_IMAGE_RASTER_WORKER_POOL_H_
|
|
|