| 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 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 int64_t memory_bytes() const { return memory_bytes_; } | 235 int64_t memory_bytes() const { return memory_bytes_; } |
| 236 | 236 |
| 237 private: | 237 private: |
| 238 int64_t memory_bytes_; | 238 int64_t memory_bytes_; |
| 239 int resource_count_; | 239 int resource_count_; |
| 240 }; | 240 }; |
| 241 | 241 |
| 242 void OnRasterTaskCompleted( | 242 void OnRasterTaskCompleted( |
| 243 Tile::Id tile, | 243 Tile::Id tile, |
| 244 Resource* resource, | 244 Resource* resource, |
| 245 const DisplayListRasterSource::SolidColorAnalysis& analysis, | |
| 246 bool was_canceled); | 245 bool was_canceled); |
| 247 void UpdateTileDrawInfo( | 246 void UpdateTileDrawInfo(Tile* tile, Resource* resource); |
| 248 Tile* tile, | |
| 249 Resource* resource, | |
| 250 const DisplayListRasterSource::SolidColorAnalysis& analysis); | |
| 251 | 247 |
| 252 void FreeResourcesForTile(Tile* tile); | 248 void FreeResourcesForTile(Tile* tile); |
| 253 void FreeResourcesForTileAndNotifyClientIfTileWasReadyToDraw(Tile* tile); | 249 void FreeResourcesForTileAndNotifyClientIfTileWasReadyToDraw(Tile* tile); |
| 254 scoped_refptr<RasterTask> CreateRasterTask( | 250 scoped_refptr<RasterTask> CreateRasterTask( |
| 255 const PrioritizedTile& prioritized_tile); | 251 const PrioritizedTile& prioritized_tile); |
| 256 | 252 |
| 257 scoped_ptr<EvictionTilePriorityQueue> | 253 scoped_ptr<EvictionTilePriorityQueue> |
| 258 FreeTileResourcesUntilUsageIsWithinLimit( | 254 FreeTileResourcesUntilUsageIsWithinLimit( |
| 259 scoped_ptr<EvictionTilePriorityQueue> eviction_priority_queue, | 255 scoped_ptr<EvictionTilePriorityQueue> eviction_priority_queue, |
| 260 const MemoryUsage& limit, | 256 const MemoryUsage& limit, |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 337 uint64_t next_tile_id_; | 333 uint64_t next_tile_id_; |
| 338 | 334 |
| 339 base::WeakPtrFactory<TileManager> task_set_finished_weak_ptr_factory_; | 335 base::WeakPtrFactory<TileManager> task_set_finished_weak_ptr_factory_; |
| 340 | 336 |
| 341 DISALLOW_COPY_AND_ASSIGN(TileManager); | 337 DISALLOW_COPY_AND_ASSIGN(TileManager); |
| 342 }; | 338 }; |
| 343 | 339 |
| 344 } // namespace cc | 340 } // namespace cc |
| 345 | 341 |
| 346 #endif // CC_TILES_TILE_MANAGER_H_ | 342 #endif // CC_TILES_TILE_MANAGER_H_ |
| OLD | NEW |