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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 RenderingStatsInstrumentation* rendering_stats_instrumentation); | 176 RenderingStatsInstrumentation* rendering_stats_instrumentation); |
177 | 177 |
178 // Methods called by Tile | 178 // Methods called by Tile |
179 friend class Tile; | 179 friend class Tile; |
180 void DidChangeTilePriority(Tile* tile); | 180 void DidChangeTilePriority(Tile* tile); |
181 | 181 |
182 void FreeResourcesForReleasedTiles(); | 182 void FreeResourcesForReleasedTiles(); |
183 void CleanUpReleasedTiles(); | 183 void CleanUpReleasedTiles(); |
184 | 184 |
185 // Overriden from RefCountedManager<Tile>: | 185 // Overriden from RefCountedManager<Tile>: |
186 virtual void Release(Tile* tile) OVERRIDE; | 186 virtual void Release(Tile* tile) override; |
187 | 187 |
188 // Overriden from RasterizerClient: | 188 // Overriden from RasterizerClient: |
189 virtual void DidFinishRunningTasks(TaskSet task_set) OVERRIDE; | 189 virtual void DidFinishRunningTasks(TaskSet task_set) override; |
190 virtual TaskSetCollection TasksThatShouldBeForcedToComplete() const OVERRIDE; | 190 virtual TaskSetCollection TasksThatShouldBeForcedToComplete() const override; |
191 | 191 |
192 typedef std::vector<Tile*> TileVector; | 192 typedef std::vector<Tile*> TileVector; |
193 typedef std::set<Tile*> TileSet; | 193 typedef std::set<Tile*> TileSet; |
194 | 194 |
195 // Virtual for test | 195 // Virtual for test |
196 virtual void ScheduleTasks( | 196 virtual void ScheduleTasks( |
197 const TileVector& tiles_that_need_to_be_rasterized); | 197 const TileVector& tiles_that_need_to_be_rasterized); |
198 | 198 |
199 void AssignGpuMemoryToTiles(PrioritizedTileSet* tiles, | 199 void AssignGpuMemoryToTiles(PrioritizedTileSet* tiles, |
200 TileVector* tiles_that_need_to_be_rasterized); | 200 TileVector* tiles_that_need_to_be_rasterized); |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 std::vector<scoped_refptr<RasterTask> > orphan_raster_tasks_; | 271 std::vector<scoped_refptr<RasterTask> > orphan_raster_tasks_; |
272 | 272 |
273 UniqueNotifier ready_to_activate_check_notifier_; | 273 UniqueNotifier ready_to_activate_check_notifier_; |
274 | 274 |
275 DISALLOW_COPY_AND_ASSIGN(TileManager); | 275 DISALLOW_COPY_AND_ASSIGN(TileManager); |
276 }; | 276 }; |
277 | 277 |
278 } // namespace cc | 278 } // namespace cc |
279 | 279 |
280 #endif // CC_RESOURCES_TILE_MANAGER_H_ | 280 #endif // CC_RESOURCES_TILE_MANAGER_H_ |
OLD | NEW |