| 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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 TaskSetCollection TasksThatShouldBeForcedToComplete() const override; | 189 TaskSetCollection TasksThatShouldBeForcedToComplete() const override; |
| 190 | 190 |
| 191 typedef std::vector<Tile*> TileVector; | 191 typedef std::vector<Tile*> TileVector; |
| 192 typedef std::set<Tile*> TileSet; | 192 typedef std::set<Tile*> TileSet; |
| 193 | 193 |
| 194 // Virtual for test | 194 // Virtual for test |
| 195 virtual void ScheduleTasks( | 195 virtual void ScheduleTasks( |
| 196 const TileVector& tiles_that_need_to_be_rasterized); | 196 const TileVector& tiles_that_need_to_be_rasterized); |
| 197 | 197 |
| 198 void AssignGpuMemoryToTiles(TileVector* tiles_that_need_to_be_rasterized, | 198 void AssignGpuMemoryToTiles(TileVector* tiles_that_need_to_be_rasterized, |
| 199 size_t scheduled_raser_task_limit, | 199 size_t scheduled_raser_task_limit); |
| 200 bool required_for_draw_only); | |
| 201 | 200 |
| 202 void SynchronouslyRasterizeTiles( | 201 void SynchronouslyRasterizeTiles( |
| 203 const GlobalStateThatImpactsTilePriority& state); | 202 const GlobalStateThatImpactsTilePriority& state); |
| 204 | 203 |
| 205 private: | 204 private: |
| 206 class MemoryUsage { | 205 class MemoryUsage { |
| 207 public: | 206 public: |
| 208 MemoryUsage(); | 207 MemoryUsage(); |
| 209 MemoryUsage(int64 memory_bytes, int resource_count); | 208 MemoryUsage(int64 memory_bytes, int resource_count); |
| 210 | 209 |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 | 303 |
| 305 bool did_notify_ready_to_activate_; | 304 bool did_notify_ready_to_activate_; |
| 306 bool did_notify_ready_to_draw_; | 305 bool did_notify_ready_to_draw_; |
| 307 | 306 |
| 308 DISALLOW_COPY_AND_ASSIGN(TileManager); | 307 DISALLOW_COPY_AND_ASSIGN(TileManager); |
| 309 }; | 308 }; |
| 310 | 309 |
| 311 } // namespace cc | 310 } // namespace cc |
| 312 | 311 |
| 313 #endif // CC_RESOURCES_TILE_MANAGER_H_ | 312 #endif // CC_RESOURCES_TILE_MANAGER_H_ |
| OLD | NEW |