Chromium Code Reviews| 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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 222 void OnRasterTaskCompleted(std::unique_ptr<RasterBuffer> raster_buffer, | 222 void OnRasterTaskCompleted(std::unique_ptr<RasterBuffer> raster_buffer, |
| 223 Tile::Id tile_id, | 223 Tile::Id tile_id, |
| 224 Resource* resource, | 224 Resource* resource, |
| 225 bool was_canceled); | 225 bool was_canceled); |
| 226 | 226 |
| 227 void SetDecodedImageTracker(DecodedImageTracker* decoded_image_tracker); | 227 void SetDecodedImageTracker(DecodedImageTracker* decoded_image_tracker); |
| 228 | 228 |
| 229 // CheckerImageTrackerClient implementation. | 229 // CheckerImageTrackerClient implementation. |
| 230 void NeedsInvalidationForCheckerImagedTiles() override; | 230 void NeedsInvalidationForCheckerImagedTiles() override; |
| 231 | 231 |
| 232 // This method can only be used for debugging information, since it performs a | |
| 233 // non trivial amount of work. | |
| 234 void GetActivationStateAsValue(base::DictionaryValue* value); | |
|
sunnyps
2017/04/05 21:09:50
Can you make this return an std::unique_ptr<base::
vmpstr
2017/04/05 22:15:36
Hm.. I specifically decided not to do this, since
| |
| 235 | |
| 232 protected: | 236 protected: |
| 233 friend class Tile; | 237 friend class Tile; |
| 234 // Must be called by tile during destruction. | 238 // Must be called by tile during destruction. |
| 235 void Release(Tile* tile); | 239 void Release(Tile* tile); |
| 236 Tile::Id GetUniqueTileId() { return ++next_tile_id_; } | 240 Tile::Id GetUniqueTileId() { return ++next_tile_id_; } |
| 237 | 241 |
| 238 private: | 242 private: |
| 239 class MemoryUsage { | 243 class MemoryUsage { |
| 240 public: | 244 public: |
| 241 MemoryUsage(); | 245 MemoryUsage(); |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 375 base::WeakPtrFactory<TileManager> task_set_finished_weak_ptr_factory_; | 379 base::WeakPtrFactory<TileManager> task_set_finished_weak_ptr_factory_; |
| 376 // The |ready_to_draw_callback_weak_ptr_factory_| is never invalidated. | 380 // The |ready_to_draw_callback_weak_ptr_factory_| is never invalidated. |
| 377 base::WeakPtrFactory<TileManager> ready_to_draw_callback_weak_ptr_factory_; | 381 base::WeakPtrFactory<TileManager> ready_to_draw_callback_weak_ptr_factory_; |
| 378 | 382 |
| 379 DISALLOW_COPY_AND_ASSIGN(TileManager); | 383 DISALLOW_COPY_AND_ASSIGN(TileManager); |
| 380 }; | 384 }; |
| 381 | 385 |
| 382 } // namespace cc | 386 } // namespace cc |
| 383 | 387 |
| 384 #endif // CC_TILES_TILE_MANAGER_H_ | 388 #endif // CC_TILES_TILE_MANAGER_H_ |
| OLD | NEW |