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_RASTER_WORKER_POOL_H_ | 5 #ifndef CC_RESOURCES_RASTER_WORKER_POOL_H_ |
6 #define CC_RESOURCES_RASTER_WORKER_POOL_H_ | 6 #define CC_RESOURCES_RASTER_WORKER_POOL_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/containers/hash_tables.h" | 11 #include "base/containers/hash_tables.h" |
12 #include "cc/debug/rendering_stats_instrumentation.h" | 12 #include "cc/debug/rendering_stats_instrumentation.h" |
13 #include "cc/resources/picture_pile_impl.h" | 13 #include "cc/resources/picture_pile_impl.h" |
14 #include "cc/resources/raster_mode.h" | 14 #include "cc/resources/raster_mode.h" |
15 #include "cc/resources/resource.h" | 15 #include "cc/resources/resource.h" |
16 #include "cc/resources/resource_provider.h" | 16 #include "cc/resources/resource_provider.h" |
17 #include "cc/resources/tile_priority.h" | 17 #include "cc/resources/tile_priority.h" |
18 #include "cc/resources/worker_pool.h" | 18 #include "cc/resources/worker_pool.h" |
19 #include "third_party/khronos/GLES2/gl2.h" | |
20 | 19 |
21 class SkPixelRef; | 20 class SkPixelRef; |
22 | 21 |
23 namespace cc { | 22 namespace cc { |
24 namespace internal { | 23 namespace internal { |
25 | 24 |
26 class CC_EXPORT RasterWorkerPoolTask | 25 class CC_EXPORT RasterWorkerPoolTask |
27 : public base::RefCounted<RasterWorkerPoolTask> { | 26 : public base::RefCounted<RasterWorkerPoolTask> { |
28 public: | 27 public: |
29 typedef std::vector<scoped_refptr<WorkerPoolTask> > TaskVector; | 28 typedef std::vector<scoped_refptr<WorkerPoolTask> > TaskVector; |
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
292 | 291 |
293 scoped_refptr<internal::WorkerPoolTask> raster_finished_task_; | 292 scoped_refptr<internal::WorkerPoolTask> raster_finished_task_; |
294 scoped_refptr<internal::WorkerPoolTask> | 293 scoped_refptr<internal::WorkerPoolTask> |
295 raster_required_for_activation_finished_task_; | 294 raster_required_for_activation_finished_task_; |
296 base::WeakPtrFactory<RasterWorkerPool> weak_ptr_factory_; | 295 base::WeakPtrFactory<RasterWorkerPool> weak_ptr_factory_; |
297 }; | 296 }; |
298 | 297 |
299 } // namespace cc | 298 } // namespace cc |
300 | 299 |
301 #endif // CC_RESOURCES_RASTER_WORKER_POOL_H_ | 300 #endif // CC_RESOURCES_RASTER_WORKER_POOL_H_ |
OLD | NEW |