| 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 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 // This method can only be used for debugging information, since it performs a | 236 // This method can only be used for debugging information, since it performs a |
| 237 // non trivial amount of work. | 237 // non trivial amount of work. |
| 238 std::unique_ptr<base::trace_event::ConvertableToTraceFormat> | 238 std::unique_ptr<base::trace_event::ConvertableToTraceFormat> |
| 239 ActivationStateAsValue(); | 239 ActivationStateAsValue(); |
| 240 | 240 |
| 241 void ActivationStateAsValueInto(base::trace_event::TracedValue* state); | 241 void ActivationStateAsValueInto(base::trace_event::TracedValue* state); |
| 242 int num_of_tiles_with_checker_images() const { | 242 int num_of_tiles_with_checker_images() const { |
| 243 return num_of_tiles_with_checker_images_; | 243 return num_of_tiles_with_checker_images_; |
| 244 } | 244 } |
| 245 | 245 |
| 246 CheckerImageTracker& checker_image_tracker() { |
| 247 return checker_image_tracker_; |
| 248 } |
| 249 |
| 246 protected: | 250 protected: |
| 247 friend class Tile; | 251 friend class Tile; |
| 248 // Must be called by tile during destruction. | 252 // Must be called by tile during destruction. |
| 249 void Release(Tile* tile); | 253 void Release(Tile* tile); |
| 250 Tile::Id GetUniqueTileId() { return ++next_tile_id_; } | 254 Tile::Id GetUniqueTileId() { return ++next_tile_id_; } |
| 251 | 255 |
| 252 private: | 256 private: |
| 253 class MemoryUsage { | 257 class MemoryUsage { |
| 254 public: | 258 public: |
| 255 MemoryUsage(); | 259 MemoryUsage(); |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 404 base::WeakPtrFactory<TileManager> task_set_finished_weak_ptr_factory_; | 408 base::WeakPtrFactory<TileManager> task_set_finished_weak_ptr_factory_; |
| 405 // The |ready_to_draw_callback_weak_ptr_factory_| is never invalidated. | 409 // The |ready_to_draw_callback_weak_ptr_factory_| is never invalidated. |
| 406 base::WeakPtrFactory<TileManager> ready_to_draw_callback_weak_ptr_factory_; | 410 base::WeakPtrFactory<TileManager> ready_to_draw_callback_weak_ptr_factory_; |
| 407 | 411 |
| 408 DISALLOW_COPY_AND_ASSIGN(TileManager); | 412 DISALLOW_COPY_AND_ASSIGN(TileManager); |
| 409 }; | 413 }; |
| 410 | 414 |
| 411 } // namespace cc | 415 } // namespace cc |
| 412 | 416 |
| 413 #endif // CC_TILES_TILE_MANAGER_H_ | 417 #endif // CC_TILES_TILE_MANAGER_H_ |
| OLD | NEW |