| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 std::unique_ptr<Tile> CreateTile(const Tile::CreateInfo& info, | 145 std::unique_ptr<Tile> CreateTile(const Tile::CreateInfo& info, |
| 146 int layer_id, | 146 int layer_id, |
| 147 int source_frame_number, | 147 int source_frame_number, |
| 148 int flags); | 148 int flags); |
| 149 | 149 |
| 150 bool IsReadyToActivate() const; | 150 bool IsReadyToActivate() const; |
| 151 bool IsReadyToDraw() const; | 151 bool IsReadyToDraw() const; |
| 152 | 152 |
| 153 const ImageIdFlatSet& TakeImagesToInvalidateOnSyncTree(); | 153 const ImageIdFlatSet& TakeImagesToInvalidateOnSyncTree(); |
| 154 void DidActivateSyncTree(); | 154 void DidActivateSyncTree(); |
| 155 void ClearCheckerImageTracking(bool can_clear_decode_policy_tracking); |
| 155 | 156 |
| 156 std::unique_ptr<base::trace_event::ConvertableToTraceFormat> | 157 std::unique_ptr<base::trace_event::ConvertableToTraceFormat> |
| 157 BasicStateAsValue() const; | 158 BasicStateAsValue() const; |
| 158 void BasicStateAsValueInto(base::trace_event::TracedValue* dict) const; | 159 void BasicStateAsValueInto(base::trace_event::TracedValue* dict) const; |
| 159 const MemoryHistory::Entry& memory_stats_from_last_assign() const { | 160 const MemoryHistory::Entry& memory_stats_from_last_assign() const { |
| 160 return memory_stats_from_last_assign_; | 161 return memory_stats_from_last_assign_; |
| 161 } | 162 } |
| 162 | 163 |
| 163 // Public methods for testing. | 164 // Public methods for testing. |
| 164 void InitializeTilesWithResourcesForTesting(const std::vector<Tile*>& tiles) { | 165 void InitializeTilesWithResourcesForTesting(const std::vector<Tile*>& tiles) { |
| (...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 403 base::WeakPtrFactory<TileManager> task_set_finished_weak_ptr_factory_; | 404 base::WeakPtrFactory<TileManager> task_set_finished_weak_ptr_factory_; |
| 404 // The |ready_to_draw_callback_weak_ptr_factory_| is never invalidated. | 405 // The |ready_to_draw_callback_weak_ptr_factory_| is never invalidated. |
| 405 base::WeakPtrFactory<TileManager> ready_to_draw_callback_weak_ptr_factory_; | 406 base::WeakPtrFactory<TileManager> ready_to_draw_callback_weak_ptr_factory_; |
| 406 | 407 |
| 407 DISALLOW_COPY_AND_ASSIGN(TileManager); | 408 DISALLOW_COPY_AND_ASSIGN(TileManager); |
| 408 }; | 409 }; |
| 409 | 410 |
| 410 } // namespace cc | 411 } // namespace cc |
| 411 | 412 |
| 412 #endif // CC_TILES_TILE_MANAGER_H_ | 413 #endif // CC_TILES_TILE_MANAGER_H_ |
| OLD | NEW |