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

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

Issue 2819723002: cc: Add more info to the BeginMainFrame dump. (Closed)
Patch Set: more tracing 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
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 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 232 // This method can only be used for debugging information, since it performs a
233 // non trivial amount of work. 233 // non trivial amount of work.
234 std::unique_ptr<base::trace_event::ConvertableToTraceFormat> 234 std::unique_ptr<base::trace_event::ConvertableToTraceFormat>
235 ActivationStateAsValue(); 235 ActivationStateAsValue();
236 236
237 void ActivationStateAsValueInto(base::trace_event::TracedValue* state);
238
237 protected: 239 protected:
238 friend class Tile; 240 friend class Tile;
239 // Must be called by tile during destruction. 241 // Must be called by tile during destruction.
240 void Release(Tile* tile); 242 void Release(Tile* tile);
241 Tile::Id GetUniqueTileId() { return ++next_tile_id_; } 243 Tile::Id GetUniqueTileId() { return ++next_tile_id_; }
242 244
243 private: 245 private:
244 class MemoryUsage { 246 class MemoryUsage {
245 public: 247 public:
246 MemoryUsage(); 248 MemoryUsage();
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 base::WeakPtrFactory<TileManager> task_set_finished_weak_ptr_factory_; 382 base::WeakPtrFactory<TileManager> task_set_finished_weak_ptr_factory_;
381 // The |ready_to_draw_callback_weak_ptr_factory_| is never invalidated. 383 // The |ready_to_draw_callback_weak_ptr_factory_| is never invalidated.
382 base::WeakPtrFactory<TileManager> ready_to_draw_callback_weak_ptr_factory_; 384 base::WeakPtrFactory<TileManager> ready_to_draw_callback_weak_ptr_factory_;
383 385
384 DISALLOW_COPY_AND_ASSIGN(TileManager); 386 DISALLOW_COPY_AND_ASSIGN(TileManager);
385 }; 387 };
386 388
387 } // namespace cc 389 } // namespace cc
388 390
389 #endif // CC_TILES_TILE_MANAGER_H_ 391 #endif // CC_TILES_TILE_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698