| 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_TILES_TILE_MANAGER_H_ | 5 #ifndef CC_TILES_TILE_MANAGER_H_ |
| 6 #define CC_TILES_TILE_MANAGER_H_ | 6 #define CC_TILES_TILE_MANAGER_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <queue> | 9 #include <queue> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 // FinishTasksAndCleanUp must be called in between consecutive calls to | 126 // FinishTasksAndCleanUp must be called in between consecutive calls to |
| 127 // SetResources. | 127 // SetResources. |
| 128 void SetResources(ResourcePool* resource_pool, | 128 void SetResources(ResourcePool* resource_pool, |
| 129 TileTaskRunner* tile_task_runner, | 129 TileTaskRunner* tile_task_runner, |
| 130 size_t scheduled_raster_task_limit); | 130 size_t scheduled_raster_task_limit); |
| 131 | 131 |
| 132 // This causes any completed raster work to finalize, so that tiles get up to | 132 // This causes any completed raster work to finalize, so that tiles get up to |
| 133 // date draw information. | 133 // date draw information. |
| 134 void Flush(); | 134 void Flush(); |
| 135 | 135 |
| 136 ScopedTilePtr CreateTile(const gfx::Size& desired_texture_size, | 136 ScopedTilePtr CreateTile(const Tile::CreateInfo& info, |
| 137 const gfx::Rect& content_rect, | |
| 138 float contents_scale, | |
| 139 int layer_id, | 137 int layer_id, |
| 140 int source_frame_number, | 138 int source_frame_number, |
| 141 int flags); | 139 int flags); |
| 142 | 140 |
| 143 bool IsReadyToActivate() const; | 141 bool IsReadyToActivate() const; |
| 144 bool IsReadyToDraw() const; | 142 bool IsReadyToDraw() const; |
| 145 | 143 |
| 146 scoped_refptr<base::trace_event::ConvertableToTraceFormat> BasicStateAsValue() | 144 scoped_refptr<base::trace_event::ConvertableToTraceFormat> BasicStateAsValue() |
| 147 const; | 145 const; |
| 148 void BasicStateAsValueInto(base::trace_event::TracedValue* dict) const; | 146 void BasicStateAsValueInto(base::trace_event::TracedValue* dict) const; |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 329 bool has_scheduled_tile_tasks_; | 327 bool has_scheduled_tile_tasks_; |
| 330 | 328 |
| 331 uint64_t prepare_tiles_count_; | 329 uint64_t prepare_tiles_count_; |
| 332 | 330 |
| 333 DISALLOW_COPY_AND_ASSIGN(TileManager); | 331 DISALLOW_COPY_AND_ASSIGN(TileManager); |
| 334 }; | 332 }; |
| 335 | 333 |
| 336 } // namespace cc | 334 } // namespace cc |
| 337 | 335 |
| 338 #endif // CC_TILES_TILE_MANAGER_H_ | 336 #endif // CC_TILES_TILE_MANAGER_H_ |
| OLD | NEW |