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_PIXEL_BUFFER_RASTER_WORKER_POOL_H_ | 5 #ifndef CC_RESOURCES_PIXEL_BUFFER_RASTER_WORKER_POOL_H_ |
6 #define CC_RESOURCES_PIXEL_BUFFER_RASTER_WORKER_POOL_H_ | 6 #define CC_RESOURCES_PIXEL_BUFFER_RASTER_WORKER_POOL_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 | 9 |
10 #include "base/cancelable_callback.h" | 10 #include "base/cancelable_callback.h" |
11 #include "base/containers/hash_tables.h" | 11 #include "base/containers/hash_tables.h" |
12 #include "cc/resources/raster_worker_pool.h" | 12 #include "cc/resources/raster_worker_pool.h" |
13 | 13 |
14 namespace cc { | 14 namespace cc { |
15 | 15 |
16 class CC_EXPORT PixelBufferRasterWorkerPool | 16 class CC_EXPORT PixelBufferRasterWorkerPool : public RasterWorkerPool { |
17 : public RasterWorkerPool, | |
18 public internal::WorkerPoolTaskClient { | |
19 public: | 17 public: |
20 virtual ~PixelBufferRasterWorkerPool(); | 18 virtual ~PixelBufferRasterWorkerPool(); |
21 | 19 |
22 static scoped_ptr<RasterWorkerPool> Create( | 20 static scoped_ptr<RasterWorkerPool> Create( |
23 ResourceProvider* resource_provider, | 21 ResourceProvider* resource_provider, |
24 ContextProvider* context_provider, | 22 ContextProvider* context_provider, |
25 size_t max_transfer_buffer_usage_bytes) { | 23 size_t max_transfer_buffer_usage_bytes) { |
26 return make_scoped_ptr<RasterWorkerPool>(new PixelBufferRasterWorkerPool( | 24 return make_scoped_ptr<RasterWorkerPool>(new PixelBufferRasterWorkerPool( |
27 resource_provider, context_provider, max_transfer_buffer_usage_bytes)); | 25 resource_provider, context_provider, max_transfer_buffer_usage_bytes)); |
28 } | 26 } |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 bool raster_finished_task_pending_; | 89 bool raster_finished_task_pending_; |
92 bool raster_required_for_activation_finished_task_pending_; | 90 bool raster_required_for_activation_finished_task_pending_; |
93 ResourceFormat format_; | 91 ResourceFormat format_; |
94 | 92 |
95 DISALLOW_COPY_AND_ASSIGN(PixelBufferRasterWorkerPool); | 93 DISALLOW_COPY_AND_ASSIGN(PixelBufferRasterWorkerPool); |
96 }; | 94 }; |
97 | 95 |
98 } // namespace cc | 96 } // namespace cc |
99 | 97 |
100 #endif // CC_RESOURCES_PIXEL_BUFFER_RASTER_WORKER_POOL_H_ | 98 #endif // CC_RESOURCES_PIXEL_BUFFER_RASTER_WORKER_POOL_H_ |
OLD | NEW |