| 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 <queue> | 8 #include <queue> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 size_t max_raster_usage_bytes, | 59 size_t max_raster_usage_bytes, |
| 60 unsigned map_image_texture_target); | 60 unsigned map_image_texture_target); |
| 61 virtual ~TileManager(); | 61 virtual ~TileManager(); |
| 62 | 62 |
| 63 void ManageTiles(const GlobalStateThatImpactsTilePriority& state); | 63 void ManageTiles(const GlobalStateThatImpactsTilePriority& state); |
| 64 | 64 |
| 65 // Returns true when visible tiles have been initialized. | 65 // Returns true when visible tiles have been initialized. |
| 66 bool UpdateVisibleTiles(); | 66 bool UpdateVisibleTiles(); |
| 67 | 67 |
| 68 scoped_refptr<Tile> CreateTile(PicturePileImpl* picture_pile, | 68 scoped_refptr<Tile> CreateTile(PicturePileImpl* picture_pile, |
| 69 const gfx::Size& tile_size, | 69 gfx::Size tile_size, |
| 70 const gfx::Rect& content_rect, | 70 const gfx::Rect& content_rect, |
| 71 const gfx::Rect& opaque_rect, | 71 const gfx::Rect& opaque_rect, |
| 72 float contents_scale, | 72 float contents_scale, |
| 73 int layer_id, | 73 int layer_id, |
| 74 int source_frame_number, | 74 int source_frame_number, |
| 75 int flags); | 75 int flags); |
| 76 | 76 |
| 77 scoped_ptr<base::Value> BasicStateAsValue() const; | 77 scoped_ptr<base::Value> BasicStateAsValue() const; |
| 78 scoped_ptr<base::Value> AllTilesAsValue() const; | 78 scoped_ptr<base::Value> AllTilesAsValue() const; |
| 79 void GetMemoryStats(size_t* memory_required_bytes, | 79 void GetMemoryStats(size_t* memory_required_bytes, |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 RasterTaskCompletionStats update_visible_tiles_stats_; | 211 RasterTaskCompletionStats update_visible_tiles_stats_; |
| 212 | 212 |
| 213 std::vector<Tile*> released_tiles_; | 213 std::vector<Tile*> released_tiles_; |
| 214 | 214 |
| 215 DISALLOW_COPY_AND_ASSIGN(TileManager); | 215 DISALLOW_COPY_AND_ASSIGN(TileManager); |
| 216 }; | 216 }; |
| 217 | 217 |
| 218 } // namespace cc | 218 } // namespace cc |
| 219 | 219 |
| 220 #endif // CC_RESOURCES_TILE_MANAGER_H_ | 220 #endif // CC_RESOURCES_TILE_MANAGER_H_ |
| OLD | NEW |