| 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 <vector> | 9 #include <vector> |
| 9 | 10 |
| 10 #include "base/containers/hash_tables.h" | 11 #include "base/containers/hash_tables.h" |
| 11 #include "cc/debug/rendering_stats_instrumentation.h" | 12 #include "cc/debug/rendering_stats_instrumentation.h" |
| 12 #include "cc/resources/picture_pile_impl.h" | 13 #include "cc/resources/picture_pile_impl.h" |
| 13 #include "cc/resources/raster_mode.h" | 14 #include "cc/resources/raster_mode.h" |
| 14 #include "cc/resources/resource.h" | 15 #include "cc/resources/resource.h" |
| 15 #include "cc/resources/resource_provider.h" | 16 #include "cc/resources/resource_provider.h" |
| 16 #include "cc/resources/tile_priority.h" | 17 #include "cc/resources/tile_priority.h" |
| 17 #include "cc/resources/worker_pool.h" | 18 #include "cc/resources/worker_pool.h" |
| (...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 } | 255 } |
| 255 void set_raster_required_for_activation_finished_task( | 256 void set_raster_required_for_activation_finished_task( |
| 256 scoped_refptr<internal::WorkerPoolTask> | 257 scoped_refptr<internal::WorkerPoolTask> |
| 257 raster_required_for_activation_finished_task) { | 258 raster_required_for_activation_finished_task) { |
| 258 raster_required_for_activation_finished_task_ = | 259 raster_required_for_activation_finished_task_ = |
| 259 raster_required_for_activation_finished_task; | 260 raster_required_for_activation_finished_task; |
| 260 } | 261 } |
| 261 | 262 |
| 262 scoped_refptr<internal::WorkerPoolTask> CreateRasterFinishedTask(); | 263 scoped_refptr<internal::WorkerPoolTask> CreateRasterFinishedTask(); |
| 263 scoped_refptr<internal::WorkerPoolTask> | 264 scoped_refptr<internal::WorkerPoolTask> |
| 264 CreateRasterRequiredForActivationFinishedTask(); | 265 CreateRasterRequiredForActivationFinishedTask( |
| 266 size_t tasks_required_for_activation_count); |
| 265 | 267 |
| 266 scoped_ptr<base::Value> ScheduledStateAsValue() const; | 268 scoped_ptr<base::Value> ScheduledStateAsValue() const; |
| 267 | 269 |
| 268 static internal::GraphNode* CreateGraphNodeForTask( | 270 static internal::GraphNode* CreateGraphNodeForTask( |
| 269 internal::WorkerPoolTask* task, | 271 internal::WorkerPoolTask* task, |
| 270 unsigned priority, | 272 unsigned priority, |
| 271 TaskGraph* graph); | 273 TaskGraph* graph); |
| 272 | 274 |
| 273 static internal::GraphNode* CreateGraphNodeForRasterTask( | 275 static internal::GraphNode* CreateGraphNodeForRasterTask( |
| 274 internal::WorkerPoolTask* raster_task, | 276 internal::WorkerPoolTask* raster_task, |
| (...skipping 15 matching lines...) Expand all Loading... |
| 290 | 292 |
| 291 scoped_refptr<internal::WorkerPoolTask> raster_finished_task_; | 293 scoped_refptr<internal::WorkerPoolTask> raster_finished_task_; |
| 292 scoped_refptr<internal::WorkerPoolTask> | 294 scoped_refptr<internal::WorkerPoolTask> |
| 293 raster_required_for_activation_finished_task_; | 295 raster_required_for_activation_finished_task_; |
| 294 base::WeakPtrFactory<RasterWorkerPool> weak_ptr_factory_; | 296 base::WeakPtrFactory<RasterWorkerPool> weak_ptr_factory_; |
| 295 }; | 297 }; |
| 296 | 298 |
| 297 } // namespace cc | 299 } // namespace cc |
| 298 | 300 |
| 299 #endif // CC_RESOURCES_RASTER_WORKER_POOL_H_ | 301 #endif // CC_RESOURCES_RASTER_WORKER_POOL_H_ |
| OLD | NEW |