| 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 virtual ~TileManager(); | 96 virtual ~TileManager(); |
| 97 | 97 |
| 98 void ManageTiles(const GlobalStateThatImpactsTilePriority& state); | 98 void ManageTiles(const GlobalStateThatImpactsTilePriority& state); |
| 99 | 99 |
| 100 // Returns true when visible tiles have been initialized. | 100 // Returns true when visible tiles have been initialized. |
| 101 bool UpdateVisibleTiles(); | 101 bool UpdateVisibleTiles(); |
| 102 | 102 |
| 103 scoped_refptr<Tile> CreateTile(PicturePileImpl* picture_pile, | 103 scoped_refptr<Tile> CreateTile(PicturePileImpl* picture_pile, |
| 104 const gfx::Size& tile_size, | 104 const gfx::Size& tile_size, |
| 105 const gfx::Rect& content_rect, | 105 const gfx::Rect& content_rect, |
| 106 const gfx::Rect& opaque_rect, | |
| 107 float contents_scale, | 106 float contents_scale, |
| 108 int layer_id, | 107 int layer_id, |
| 109 int source_frame_number, | 108 int source_frame_number, |
| 110 int flags); | 109 int flags); |
| 111 | 110 |
| 112 scoped_refptr<base::debug::ConvertableToTraceFormat> BasicStateAsValue() | 111 scoped_refptr<base::debug::ConvertableToTraceFormat> BasicStateAsValue() |
| 113 const; | 112 const; |
| 114 void BasicStateAsValueInto(base::debug::TracedValue* dict) const; | 113 void BasicStateAsValueInto(base::debug::TracedValue* dict) const; |
| 115 const MemoryHistory::Entry& memory_stats_from_last_assign() const { | 114 const MemoryHistory::Entry& memory_stats_from_last_assign() const { |
| 116 return memory_stats_from_last_assign_; | 115 return memory_stats_from_last_assign_; |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 std::vector<scoped_refptr<RasterTask> > orphan_raster_tasks_; | 263 std::vector<scoped_refptr<RasterTask> > orphan_raster_tasks_; |
| 265 | 264 |
| 266 UniqueNotifier ready_to_activate_check_notifier_; | 265 UniqueNotifier ready_to_activate_check_notifier_; |
| 267 | 266 |
| 268 DISALLOW_COPY_AND_ASSIGN(TileManager); | 267 DISALLOW_COPY_AND_ASSIGN(TileManager); |
| 269 }; | 268 }; |
| 270 | 269 |
| 271 } // namespace cc | 270 } // namespace cc |
| 272 | 271 |
| 273 #endif // CC_RESOURCES_TILE_MANAGER_H_ | 272 #endif // CC_RESOURCES_TILE_MANAGER_H_ |
| OLD | NEW |