Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(157)

Side by Side Diff: cc/tiles/tile_manager.h

Issue 2797883002: cc: Add TileManager::GetActivationStateAsValue for debugging state. (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | cc/tiles/tile_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | cc/tiles/tile_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698