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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 const gfx::Rect& content_rect, | 105 const gfx::Rect& content_rect, |
106 const gfx::Rect& opaque_rect, | 106 const gfx::Rect& opaque_rect, |
107 float contents_scale, | 107 float contents_scale, |
108 int layer_id, | 108 int layer_id, |
109 int source_frame_number, | 109 int source_frame_number, |
110 int flags); | 110 int flags); |
111 | 111 |
112 scoped_refptr<base::debug::ConvertableToTraceFormat> BasicStateAsValue() | 112 scoped_refptr<base::debug::ConvertableToTraceFormat> BasicStateAsValue() |
113 const; | 113 const; |
114 void BasicStateAsValueInto(base::debug::TracedValue* dict) const; | 114 void BasicStateAsValueInto(base::debug::TracedValue* dict) const; |
115 void AllTilesAsValueInto(base::debug::TracedValue* array) const; | 115 void AllTilesAsValueInto(base::debug::TracedValue* array, |
| 116 const std::set<const Tile*>& active_tiles) const; |
116 const MemoryHistory::Entry& memory_stats_from_last_assign() const { | 117 const MemoryHistory::Entry& memory_stats_from_last_assign() const { |
117 return memory_stats_from_last_assign_; | 118 return memory_stats_from_last_assign_; |
118 } | 119 } |
119 | 120 |
120 void InitializeTilesWithResourcesForTesting(const std::vector<Tile*>& tiles) { | 121 void InitializeTilesWithResourcesForTesting(const std::vector<Tile*>& tiles) { |
121 for (size_t i = 0; i < tiles.size(); ++i) { | 122 for (size_t i = 0; i < tiles.size(); ++i) { |
122 ManagedTileState& mts = tiles[i]->managed_state(); | 123 ManagedTileState& mts = tiles[i]->managed_state(); |
123 ManagedTileState::TileVersion& tile_version = | 124 ManagedTileState::TileVersion& tile_version = |
124 mts.tile_versions[HIGH_QUALITY_RASTER_MODE]; | 125 mts.tile_versions[HIGH_QUALITY_RASTER_MODE]; |
125 | 126 |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 std::vector<scoped_refptr<RasterTask> > orphan_raster_tasks_; | 264 std::vector<scoped_refptr<RasterTask> > orphan_raster_tasks_; |
264 | 265 |
265 UniqueNotifier ready_to_activate_check_notifier_; | 266 UniqueNotifier ready_to_activate_check_notifier_; |
266 | 267 |
267 DISALLOW_COPY_AND_ASSIGN(TileManager); | 268 DISALLOW_COPY_AND_ASSIGN(TileManager); |
268 }; | 269 }; |
269 | 270 |
270 } // namespace cc | 271 } // namespace cc |
271 | 272 |
272 #endif // CC_RESOURCES_TILE_MANAGER_H_ | 273 #endif // CC_RESOURCES_TILE_MANAGER_H_ |
OLD | NEW |