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