Chromium Code Reviews| 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 99 | 99 |
| 100 static scoped_ptr<TileManager> Create( | 100 static scoped_ptr<TileManager> Create( |
| 101 TileManagerClient* client, | 101 TileManagerClient* client, |
| 102 base::SequencedTaskRunner* task_runner, | 102 base::SequencedTaskRunner* task_runner, |
| 103 ResourcePool* resource_pool, | 103 ResourcePool* resource_pool, |
| 104 Rasterizer* rasterizer, | 104 Rasterizer* rasterizer, |
| 105 RenderingStatsInstrumentation* rendering_stats_instrumentation, | 105 RenderingStatsInstrumentation* rendering_stats_instrumentation, |
| 106 size_t scheduled_raster_task_limit); | 106 size_t scheduled_raster_task_limit); |
| 107 ~TileManager() override; | 107 ~TileManager() override; |
| 108 | 108 |
| 109 void ManageTiles(const GlobalStateThatImpactsTilePriority& state); | 109 void PrepareTiles(const GlobalStateThatImpactsTilePriority& state); |
|
reveman
2014/12/09 05:04:11
This should have been done in the past but as you'
vmiura
2014/12/09 18:08:46
Done.
| |
| 110 | 110 |
| 111 void UpdateVisibleTiles(); | 111 void UpdateVisibleTiles(); |
| 112 | 112 |
| 113 scoped_refptr<Tile> CreateTile(RasterSource* raster_source, | 113 scoped_refptr<Tile> CreateTile(RasterSource* raster_source, |
| 114 const gfx::Size& tile_size, | 114 const gfx::Size& tile_size, |
| 115 const gfx::Rect& content_rect, | 115 const gfx::Rect& content_rect, |
| 116 float contents_scale, | 116 float contents_scale, |
| 117 int layer_id, | 117 int layer_id, |
| 118 int source_frame_number, | 118 int source_frame_number, |
| 119 int flags); | 119 int flags); |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 288 | 288 |
| 289 bool did_notify_ready_to_activate_; | 289 bool did_notify_ready_to_activate_; |
| 290 bool did_notify_ready_to_draw_; | 290 bool did_notify_ready_to_draw_; |
| 291 | 291 |
| 292 DISALLOW_COPY_AND_ASSIGN(TileManager); | 292 DISALLOW_COPY_AND_ASSIGN(TileManager); |
| 293 }; | 293 }; |
| 294 | 294 |
| 295 } // namespace cc | 295 } // namespace cc |
| 296 | 296 |
| 297 #endif // CC_RESOURCES_TILE_MANAGER_H_ | 297 #endif // CC_RESOURCES_TILE_MANAGER_H_ |
| OLD | NEW |