| 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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 void SetRasterizerForTesting(Rasterizer* rasterizer); | 152 void SetRasterizerForTesting(Rasterizer* rasterizer); |
| 153 | 153 |
| 154 void FreeResourcesAndCleanUpReleasedTilesForTesting() { | 154 void FreeResourcesAndCleanUpReleasedTilesForTesting() { |
| 155 prioritized_tiles_.Clear(); | 155 prioritized_tiles_.Clear(); |
| 156 FreeResourcesForReleasedTiles(); | 156 FreeResourcesForReleasedTiles(); |
| 157 CleanUpReleasedTiles(); | 157 CleanUpReleasedTiles(); |
| 158 } | 158 } |
| 159 | 159 |
| 160 protected: | 160 protected: |
| 161 TileManager(TileManagerClient* client, | 161 TileManager(TileManagerClient* client, |
| 162 base::SequencedTaskRunner* task_runner, | 162 const scoped_refptr<base::SequencedTaskRunner>& task_runner, |
| 163 ResourcePool* resource_pool, | 163 ResourcePool* resource_pool, |
| 164 Rasterizer* rasterizer, | 164 Rasterizer* rasterizer, |
| 165 RenderingStatsInstrumentation* rendering_stats_instrumentation); | 165 RenderingStatsInstrumentation* rendering_stats_instrumentation); |
| 166 | 166 |
| 167 // Methods called by Tile | 167 // Methods called by Tile |
| 168 friend class Tile; | 168 friend class Tile; |
| 169 void DidChangeTilePriority(Tile* tile); | 169 void DidChangeTilePriority(Tile* tile); |
| 170 | 170 |
| 171 void FreeResourcesForReleasedTiles(); | 171 void FreeResourcesForReleasedTiles(); |
| 172 void CleanUpReleasedTiles(); | 172 void CleanUpReleasedTiles(); |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 std::vector<scoped_refptr<RasterTask> > orphan_raster_tasks_; | 263 std::vector<scoped_refptr<RasterTask> > orphan_raster_tasks_; |
| 264 | 264 |
| 265 UniqueNotifier ready_to_activate_check_notifier_; | 265 UniqueNotifier ready_to_activate_check_notifier_; |
| 266 | 266 |
| 267 DISALLOW_COPY_AND_ASSIGN(TileManager); | 267 DISALLOW_COPY_AND_ASSIGN(TileManager); |
| 268 }; | 268 }; |
| 269 | 269 |
| 270 } // namespace cc | 270 } // namespace cc |
| 271 | 271 |
| 272 #endif // CC_RESOURCES_TILE_MANAGER_H_ | 272 #endif // CC_RESOURCES_TILE_MANAGER_H_ |
| OLD | NEW |