| 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 | 111 |
| 112 // Assigns tile memory and schedules work to prepare tiles for drawing. | 112 // Assigns tile memory and schedules work to prepare tiles for drawing. |
| 113 // - Runs client_->NotifyReadyToActivate() when all tiles required for | 113 // - Runs client_->NotifyReadyToActivate() when all tiles required for |
| 114 // activation are prepared, or failed to prepare due to OOM. | 114 // activation are prepared, or failed to prepare due to OOM. |
| 115 // - Runs client_->NotifyReadyToDraw() when all tiles required draw are | 115 // - Runs client_->NotifyReadyToDraw() when all tiles required draw are |
| 116 // prepared, or failed to prepare due to OOM. | 116 // prepared, or failed to prepare due to OOM. |
| 117 void PrepareTiles(const GlobalStateThatImpactsTilePriority& state); | 117 void PrepareTiles(const GlobalStateThatImpactsTilePriority& state); |
| 118 | 118 |
| 119 void UpdateVisibleTiles(const GlobalStateThatImpactsTilePriority& state); | 119 void UpdateVisibleTiles(const GlobalStateThatImpactsTilePriority& state); |
| 120 | 120 |
| 121 scoped_refptr<Tile> CreateTile(RasterSource* raster_source, | 121 scoped_refptr<Tile> CreateTile(scoped_refptr<RasterSource>* raster_source, |
| 122 const gfx::Size& desired_texture_size, | 122 const gfx::Size& desired_texture_size, |
| 123 const gfx::Rect& content_rect, | 123 const gfx::Rect& content_rect, |
| 124 float contents_scale, | 124 float contents_scale, |
| 125 int layer_id, | 125 int layer_id, |
| 126 int source_frame_number, | 126 int source_frame_number, |
| 127 int flags); | 127 int flags); |
| 128 | 128 |
| 129 bool IsReadyToActivate() const; | 129 bool IsReadyToActivate() const; |
| 130 bool IsReadyToDraw() const; | 130 bool IsReadyToDraw() const; |
| 131 | 131 |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 307 | 307 |
| 308 bool did_notify_ready_to_activate_; | 308 bool did_notify_ready_to_activate_; |
| 309 bool did_notify_ready_to_draw_; | 309 bool did_notify_ready_to_draw_; |
| 310 | 310 |
| 311 DISALLOW_COPY_AND_ASSIGN(TileManager); | 311 DISALLOW_COPY_AND_ASSIGN(TileManager); |
| 312 }; | 312 }; |
| 313 | 313 |
| 314 } // namespace cc | 314 } // namespace cc |
| 315 | 315 |
| 316 #endif // CC_RESOURCES_TILE_MANAGER_H_ | 316 #endif // CC_RESOURCES_TILE_MANAGER_H_ |
| OLD | NEW |