| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CC_RESOURCES_IMAGE_RASTER_WORKER_POOL_H_ | 5 #ifndef CC_RESOURCES_IMAGE_RASTER_WORKER_POOL_H_ |
| 6 #define CC_RESOURCES_IMAGE_RASTER_WORKER_POOL_H_ | 6 #define CC_RESOURCES_IMAGE_RASTER_WORKER_POOL_H_ |
| 7 | 7 |
| 8 #include "cc/resources/raster_worker_pool.h" | 8 #include "cc/resources/raster_worker_pool.h" |
| 9 | 9 |
| 10 namespace cc { | 10 namespace cc { |
| 11 | 11 |
| 12 class CC_EXPORT ImageRasterWorkerPool : public RasterWorkerPool, | 12 class CC_EXPORT ImageRasterWorkerPool : public RasterWorkerPool { |
| 13 public internal::WorkerPoolTaskClient { | |
| 14 public: | 13 public: |
| 15 virtual ~ImageRasterWorkerPool(); | 14 virtual ~ImageRasterWorkerPool(); |
| 16 | 15 |
| 17 static scoped_ptr<RasterWorkerPool> Create( | 16 static scoped_ptr<RasterWorkerPool> Create( |
| 18 ResourceProvider* resource_provider, | 17 ResourceProvider* resource_provider, |
| 19 ContextProvider* context_provider, | 18 ContextProvider* context_provider, |
| 20 unsigned texture_target) { | 19 unsigned texture_target) { |
| 21 return make_scoped_ptr<RasterWorkerPool>(new ImageRasterWorkerPool( | 20 return make_scoped_ptr<RasterWorkerPool>(new ImageRasterWorkerPool( |
| 22 resource_provider, context_provider, texture_target)); | 21 resource_provider, context_provider, texture_target)); |
| 23 } | 22 } |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 | 59 |
| 61 bool raster_tasks_pending_; | 60 bool raster_tasks_pending_; |
| 62 bool raster_tasks_required_for_activation_pending_; | 61 bool raster_tasks_required_for_activation_pending_; |
| 63 | 62 |
| 64 DISALLOW_COPY_AND_ASSIGN(ImageRasterWorkerPool); | 63 DISALLOW_COPY_AND_ASSIGN(ImageRasterWorkerPool); |
| 65 }; | 64 }; |
| 66 | 65 |
| 67 } // namespace cc | 66 } // namespace cc |
| 68 | 67 |
| 69 #endif // CC_RESOURCES_IMAGE_RASTER_WORKER_POOL_H_ | 68 #endif // CC_RESOURCES_IMAGE_RASTER_WORKER_POOL_H_ |
| OLD | NEW |