| 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 <queue> | 8 #include <queue> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 void FreeResourcesForTile(Tile* tile); | 135 void FreeResourcesForTile(Tile* tile); |
| 136 void FreeUnusedResourcesForTile(Tile* tile); | 136 void FreeUnusedResourcesForTile(Tile* tile); |
| 137 RasterWorkerPool::Task CreateImageDecodeTask( | 137 RasterWorkerPool::Task CreateImageDecodeTask( |
| 138 Tile* tile, skia::LazyPixelRef* pixel_ref); | 138 Tile* tile, skia::LazyPixelRef* pixel_ref); |
| 139 RasterTaskMetadata GetRasterTaskMetadata(const Tile& tile) const; | 139 RasterTaskMetadata GetRasterTaskMetadata(const Tile& tile) const; |
| 140 RasterWorkerPool::RasterTask CreateRasterTask(Tile* tile); | 140 RasterWorkerPool::RasterTask CreateRasterTask(Tile* tile); |
| 141 void DidFinishTileInitialization(Tile* tile); | 141 void DidFinishTileInitialization(Tile* tile); |
| 142 void DidTileTreeBinChange(Tile* tile, | 142 void DidTileTreeBinChange(Tile* tile, |
| 143 TileManagerBin new_tree_bin, | 143 TileManagerBin new_tree_bin, |
| 144 WhichTree tree); | 144 WhichTree tree); |
| 145 scoped_ptr<Value> GetMemoryRequirementsAsValue() const; | 145 scoped_ptr<base::Value> GetMemoryRequirementsAsValue() const; |
| 146 void AddRequiredTileForActivation(Tile* tile); | 146 void AddRequiredTileForActivation(Tile* tile); |
| 147 | 147 |
| 148 TileManagerClient* client_; | 148 TileManagerClient* client_; |
| 149 scoped_ptr<ResourcePool> resource_pool_; | 149 scoped_ptr<ResourcePool> resource_pool_; |
| 150 scoped_ptr<RasterWorkerPool> raster_worker_pool_; | 150 scoped_ptr<RasterWorkerPool> raster_worker_pool_; |
| 151 GlobalStateThatImpactsTilePriority global_state_; | 151 GlobalStateThatImpactsTilePriority global_state_; |
| 152 | 152 |
| 153 typedef std::vector<Tile*> TileVector; | 153 typedef std::vector<Tile*> TileVector; |
| 154 TileVector tiles_; | 154 TileVector tiles_; |
| 155 TileVector tiles_that_need_to_be_rasterized_; | 155 TileVector tiles_that_need_to_be_rasterized_; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 169 typedef base::hash_map<uint32_t, RasterWorkerPool::Task> PixelRefTaskMap; | 169 typedef base::hash_map<uint32_t, RasterWorkerPool::Task> PixelRefTaskMap; |
| 170 typedef base::hash_map<int, PixelRefTaskMap> LayerPixelRefTaskMap; | 170 typedef base::hash_map<int, PixelRefTaskMap> LayerPixelRefTaskMap; |
| 171 LayerPixelRefTaskMap image_decode_tasks_; | 171 LayerPixelRefTaskMap image_decode_tasks_; |
| 172 | 172 |
| 173 DISALLOW_COPY_AND_ASSIGN(TileManager); | 173 DISALLOW_COPY_AND_ASSIGN(TileManager); |
| 174 }; | 174 }; |
| 175 | 175 |
| 176 } // namespace cc | 176 } // namespace cc |
| 177 | 177 |
| 178 #endif // CC_RESOURCES_TILE_MANAGER_H_ | 178 #endif // CC_RESOURCES_TILE_MANAGER_H_ |
| OLD | NEW |