| 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 void Flush(); | 134 void Flush(); |
| 135 | 135 |
| 136 ScopedTilePtr CreateTile(const Tile::CreateInfo& info, | 136 ScopedTilePtr CreateTile(const Tile::CreateInfo& info, |
| 137 int layer_id, | 137 int layer_id, |
| 138 int source_frame_number, | 138 int source_frame_number, |
| 139 int flags); | 139 int flags); |
| 140 | 140 |
| 141 bool IsReadyToActivate() const; | 141 bool IsReadyToActivate() const; |
| 142 bool IsReadyToDraw() const; | 142 bool IsReadyToDraw() const; |
| 143 | 143 |
| 144 ImageDecodeController* GetImageDecodeController() { |
| 145 return &image_decode_controller_; |
| 146 } |
| 147 |
| 144 scoped_refptr<base::trace_event::ConvertableToTraceFormat> BasicStateAsValue() | 148 scoped_refptr<base::trace_event::ConvertableToTraceFormat> BasicStateAsValue() |
| 145 const; | 149 const; |
| 146 void BasicStateAsValueInto(base::trace_event::TracedValue* dict) const; | 150 void BasicStateAsValueInto(base::trace_event::TracedValue* dict) const; |
| 147 const MemoryHistory::Entry& memory_stats_from_last_assign() const { | 151 const MemoryHistory::Entry& memory_stats_from_last_assign() const { |
| 148 return memory_stats_from_last_assign_; | 152 return memory_stats_from_last_assign_; |
| 149 } | 153 } |
| 150 | 154 |
| 151 // Public methods for testing. | 155 // Public methods for testing. |
| 152 void InitializeTilesWithResourcesForTesting(const std::vector<Tile*>& tiles) { | 156 void InitializeTilesWithResourcesForTesting(const std::vector<Tile*>& tiles) { |
| 153 for (size_t i = 0; i < tiles.size(); ++i) { | 157 for (size_t i = 0; i < tiles.size(); ++i) { |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 331 | 335 |
| 332 uint64_t prepare_tiles_count_; | 336 uint64_t prepare_tiles_count_; |
| 333 uint64_t next_tile_id_; | 337 uint64_t next_tile_id_; |
| 334 | 338 |
| 335 DISALLOW_COPY_AND_ASSIGN(TileManager); | 339 DISALLOW_COPY_AND_ASSIGN(TileManager); |
| 336 }; | 340 }; |
| 337 | 341 |
| 338 } // namespace cc | 342 } // namespace cc |
| 339 | 343 |
| 340 #endif // CC_TILES_TILE_MANAGER_H_ | 344 #endif // CC_TILES_TILE_MANAGER_H_ |
| OLD | NEW |