| 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); |
| 200 | 201 |
| 201 void SynchronouslyRasterizeTiles( | 202 void SynchronouslyRasterizeTiles( |
| 202 const GlobalStateThatImpactsTilePriority& state); | 203 const GlobalStateThatImpactsTilePriority& state); |
| 203 | 204 |
| 204 private: | 205 private: |
| 205 class MemoryUsage { | 206 class MemoryUsage { |
| 206 public: | 207 public: |
| 207 MemoryUsage(); | 208 MemoryUsage(); |
| 208 MemoryUsage(int64 memory_bytes, int resource_count); | 209 MemoryUsage(int64 memory_bytes, int resource_count); |
| 209 | 210 |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 303 | 304 |
| 304 bool did_notify_ready_to_activate_; | 305 bool did_notify_ready_to_activate_; |
| 305 bool did_notify_ready_to_draw_; | 306 bool did_notify_ready_to_draw_; |
| 306 | 307 |
| 307 DISALLOW_COPY_AND_ASSIGN(TileManager); | 308 DISALLOW_COPY_AND_ASSIGN(TileManager); |
| 308 }; | 309 }; |
| 309 | 310 |
| 310 } // namespace cc | 311 } // namespace cc |
| 311 | 312 |
| 312 #endif // CC_RESOURCES_TILE_MANAGER_H_ | 313 #endif // CC_RESOURCES_TILE_MANAGER_H_ |
| OLD | NEW |