OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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_TILE_MANAGER_H_ | 5 #ifndef CC_RESOURCES_TILE_MANAGER_H_ |
6 #define CC_RESOURCES_TILE_MANAGER_H_ | 6 #define CC_RESOURCES_TILE_MANAGER_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <queue> | 9 #include <queue> |
10 #include <set> | 10 #include <set> |
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 | 242 |
243 bool all_tiles_that_need_to_be_rasterized_are_scheduled_; | 243 bool all_tiles_that_need_to_be_rasterized_are_scheduled_; |
244 MemoryHistory::Entry memory_stats_from_last_assign_; | 244 MemoryHistory::Entry memory_stats_from_last_assign_; |
245 | 245 |
246 RenderingStatsInstrumentation* rendering_stats_instrumentation_; | 246 RenderingStatsInstrumentation* rendering_stats_instrumentation_; |
247 | 247 |
248 bool did_initialize_visible_tile_; | 248 bool did_initialize_visible_tile_; |
249 bool did_check_for_completed_tasks_since_last_schedule_tasks_; | 249 bool did_check_for_completed_tasks_since_last_schedule_tasks_; |
250 bool did_oom_on_last_assign_; | 250 bool did_oom_on_last_assign_; |
251 | 251 |
252 typedef base::hash_map<uint32_t, scoped_refptr<ImageDecodeTask> > | 252 typedef base::hash_map<uint32_t, scoped_refptr<ImageDecodeTask>> |
253 PixelRefTaskMap; | 253 PixelRefTaskMap; |
254 typedef base::hash_map<int, PixelRefTaskMap> LayerPixelRefTaskMap; | 254 typedef base::hash_map<int, PixelRefTaskMap> LayerPixelRefTaskMap; |
255 LayerPixelRefTaskMap image_decode_tasks_; | 255 LayerPixelRefTaskMap image_decode_tasks_; |
256 | 256 |
257 typedef base::hash_map<int, int> LayerCountMap; | 257 typedef base::hash_map<int, int> LayerCountMap; |
258 LayerCountMap used_layer_counts_; | 258 LayerCountMap used_layer_counts_; |
259 | 259 |
260 RasterTaskCompletionStats update_visible_tiles_stats_; | 260 RasterTaskCompletionStats update_visible_tiles_stats_; |
261 | 261 |
262 std::vector<Tile*> released_tiles_; | 262 std::vector<Tile*> released_tiles_; |
263 | 263 |
264 ResourceFormat resource_format_; | 264 ResourceFormat resource_format_; |
265 | 265 |
266 // Queue used when scheduling raster tasks. | 266 // Queue used when scheduling raster tasks. |
267 RasterTaskQueue raster_queue_; | 267 RasterTaskQueue raster_queue_; |
268 | 268 |
269 std::vector<scoped_refptr<RasterTask> > orphan_raster_tasks_; | 269 std::vector<scoped_refptr<RasterTask>> orphan_raster_tasks_; |
270 | 270 |
271 UniqueNotifier ready_to_activate_check_notifier_; | 271 UniqueNotifier ready_to_activate_check_notifier_; |
272 | 272 |
273 RasterTilePriorityQueue raster_priority_queue_; | 273 RasterTilePriorityQueue raster_priority_queue_; |
274 EvictionTilePriorityQueue eviction_priority_queue_; | 274 EvictionTilePriorityQueue eviction_priority_queue_; |
275 bool eviction_priority_queue_is_up_to_date_; | 275 bool eviction_priority_queue_is_up_to_date_; |
276 | 276 |
277 DISALLOW_COPY_AND_ASSIGN(TileManager); | 277 DISALLOW_COPY_AND_ASSIGN(TileManager); |
278 }; | 278 }; |
279 | 279 |
280 } // namespace cc | 280 } // namespace cc |
281 | 281 |
282 #endif // CC_RESOURCES_TILE_MANAGER_H_ | 282 #endif // CC_RESOURCES_TILE_MANAGER_H_ |
OLD | NEW |