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

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

Issue 2797883002: cc: Add TileManager::GetActivationStateAsValue for debugging state. (Closed)
Patch Set: compilefix 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 std::unique_ptr<base::trace_event::ConvertableToTraceFormat>
235 ActivationStateAsValue();
236
232 protected: 237 protected:
233 friend class Tile; 238 friend class Tile;
234 // Must be called by tile during destruction. 239 // Must be called by tile during destruction.
235 void Release(Tile* tile); 240 void Release(Tile* tile);
236 Tile::Id GetUniqueTileId() { return ++next_tile_id_; } 241 Tile::Id GetUniqueTileId() { return ++next_tile_id_; }
237 242
238 private: 243 private:
239 class MemoryUsage { 244 class MemoryUsage {
240 public: 245 public:
241 MemoryUsage(); 246 MemoryUsage();
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 base::WeakPtrFactory<TileManager> task_set_finished_weak_ptr_factory_; 380 base::WeakPtrFactory<TileManager> task_set_finished_weak_ptr_factory_;
376 // The |ready_to_draw_callback_weak_ptr_factory_| is never invalidated. 381 // The |ready_to_draw_callback_weak_ptr_factory_| is never invalidated.
377 base::WeakPtrFactory<TileManager> ready_to_draw_callback_weak_ptr_factory_; 382 base::WeakPtrFactory<TileManager> ready_to_draw_callback_weak_ptr_factory_;
378 383
379 DISALLOW_COPY_AND_ASSIGN(TileManager); 384 DISALLOW_COPY_AND_ASSIGN(TileManager);
380 }; 385 };
381 386
382 } // namespace cc 387 } // namespace cc
383 388
384 #endif // CC_TILES_TILE_MANAGER_H_ 389 #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