| 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_TILE_MANAGER_H_ | 5 #ifndef CC_TILE_MANAGER_H_ |
| 6 #define CC_TILE_MANAGER_H_ | 6 #define CC_TILE_MANAGER_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <queue> | 9 #include <queue> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 | 167 |
| 168 TileManagerClient* client_; | 168 TileManagerClient* client_; |
| 169 scoped_ptr<ResourcePool> resource_pool_; | 169 scoped_ptr<ResourcePool> resource_pool_; |
| 170 scoped_ptr<RasterWorkerPool> raster_worker_pool_; | 170 scoped_ptr<RasterWorkerPool> raster_worker_pool_; |
| 171 bool manage_tiles_pending_; | 171 bool manage_tiles_pending_; |
| 172 int manage_tiles_call_count_; | 172 int manage_tiles_call_count_; |
| 173 | 173 |
| 174 GlobalStateThatImpactsTilePriority global_state_; | 174 GlobalStateThatImpactsTilePriority global_state_; |
| 175 | 175 |
| 176 typedef std::vector<Tile*> TileVector; | 176 typedef std::vector<Tile*> TileVector; |
| 177 TileVector tiles_; | 177 TileVector all_tiles_; |
| 178 TileVector live_tiles_; |
| 178 TileVector tiles_that_need_to_be_rasterized_; | 179 TileVector tiles_that_need_to_be_rasterized_; |
| 179 | 180 |
| 180 typedef std::list<Tile*> TileList; | 181 typedef std::list<Tile*> TileList; |
| 181 // Tiles with image decoding tasks. These tiles need to be rasterized | 182 // Tiles with image decoding tasks. These tiles need to be rasterized |
| 182 // when all the image decoding tasks finish. | 183 // when all the image decoding tasks finish. |
| 183 TileList tiles_with_image_decoding_tasks_; | 184 TileList tiles_with_image_decoding_tasks_; |
| 184 | 185 |
| 185 typedef base::hash_map<uint32_t, skia::LazyPixelRef*> PixelRefMap; | 186 typedef base::hash_map<uint32_t, skia::LazyPixelRef*> PixelRefMap; |
| 186 PixelRefMap pending_decode_tasks_; | 187 PixelRefMap pending_decode_tasks_; |
| 187 | 188 |
| 188 typedef std::queue<scoped_refptr<Tile> > TileQueue; | 189 typedef std::queue<scoped_refptr<Tile> > TileQueue; |
| 189 TileQueue tiles_with_pending_set_pixels_; | 190 TileQueue tiles_with_pending_set_pixels_; |
| 190 size_t bytes_pending_set_pixels_; | 191 size_t bytes_pending_set_pixels_; |
| 191 bool ever_exceeded_memory_budget_; | 192 bool ever_exceeded_memory_budget_; |
| 192 MemoryHistory::Entry memory_stats_from_last_assign_; | 193 MemoryHistory::Entry memory_stats_from_last_assign_; |
| 193 | 194 |
| 194 bool record_rendering_stats_; | 195 bool record_rendering_stats_; |
| 195 RenderingStats rendering_stats_; | 196 RenderingStats rendering_stats_; |
| 196 | 197 |
| 197 int raster_state_count_[NUM_STATES][NUM_TREES][NUM_BINS]; | 198 int raster_state_count_[NUM_STATES][NUM_TREES][NUM_BINS]; |
| 198 | 199 |
| 199 DISALLOW_COPY_AND_ASSIGN(TileManager); | 200 DISALLOW_COPY_AND_ASSIGN(TileManager); |
| 200 }; | 201 }; |
| 201 | 202 |
| 202 } // namespace cc | 203 } // namespace cc |
| 203 | 204 |
| 204 #endif // CC_TILE_MANAGER_H_ | 205 #endif // CC_TILE_MANAGER_H_ |
| OLD | NEW |