| 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_TILES_TILE_MANAGER_H_ | 5 #ifndef CC_TILES_TILE_MANAGER_H_ |
| 6 #define CC_TILES_TILE_MANAGER_H_ | 6 #define CC_TILES_TILE_MANAGER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 int resource_count_; | 242 int resource_count_; |
| 243 }; | 243 }; |
| 244 | 244 |
| 245 void OnRasterTaskCompleted( | 245 void OnRasterTaskCompleted( |
| 246 Tile::Id tile, | 246 Tile::Id tile, |
| 247 Resource* resource, | 247 Resource* resource, |
| 248 bool was_canceled); | 248 bool was_canceled); |
| 249 | 249 |
| 250 void FreeResourcesForTile(Tile* tile); | 250 void FreeResourcesForTile(Tile* tile); |
| 251 void FreeResourcesForTileAndNotifyClientIfTileWasReadyToDraw(Tile* tile); | 251 void FreeResourcesForTileAndNotifyClientIfTileWasReadyToDraw(Tile* tile); |
| 252 scoped_refptr<RasterTask> CreateRasterTask( | 252 scoped_refptr<TileTask> CreateRasterTask( |
| 253 const PrioritizedTile& prioritized_tile); | 253 const PrioritizedTile& prioritized_tile); |
| 254 | 254 |
| 255 std::unique_ptr<EvictionTilePriorityQueue> | 255 std::unique_ptr<EvictionTilePriorityQueue> |
| 256 FreeTileResourcesUntilUsageIsWithinLimit( | 256 FreeTileResourcesUntilUsageIsWithinLimit( |
| 257 std::unique_ptr<EvictionTilePriorityQueue> eviction_priority_queue, | 257 std::unique_ptr<EvictionTilePriorityQueue> eviction_priority_queue, |
| 258 const MemoryUsage& limit, | 258 const MemoryUsage& limit, |
| 259 MemoryUsage* usage); | 259 MemoryUsage* usage); |
| 260 std::unique_ptr<EvictionTilePriorityQueue> | 260 std::unique_ptr<EvictionTilePriorityQueue> |
| 261 FreeTileResourcesWithLowerPriorityUntilUsageIsWithinLimit( | 261 FreeTileResourcesWithLowerPriorityUntilUsageIsWithinLimit( |
| 262 std::unique_ptr<EvictionTilePriorityQueue> eviction_priority_queue, | 262 std::unique_ptr<EvictionTilePriorityQueue> eviction_priority_queue, |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 339 std::unordered_map<Tile::Id, std::vector<DrawImage>> scheduled_draw_images_; | 339 std::unordered_map<Tile::Id, std::vector<DrawImage>> scheduled_draw_images_; |
| 340 | 340 |
| 341 base::WeakPtrFactory<TileManager> task_set_finished_weak_ptr_factory_; | 341 base::WeakPtrFactory<TileManager> task_set_finished_weak_ptr_factory_; |
| 342 | 342 |
| 343 DISALLOW_COPY_AND_ASSIGN(TileManager); | 343 DISALLOW_COPY_AND_ASSIGN(TileManager); |
| 344 }; | 344 }; |
| 345 | 345 |
| 346 } // namespace cc | 346 } // namespace cc |
| 347 | 347 |
| 348 #endif // CC_TILES_TILE_MANAGER_H_ | 348 #endif // CC_TILES_TILE_MANAGER_H_ |
| OLD | NEW |