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

Unified Diff: cc/resources/tile_manager.cc

Issue 493543002: cc: Report only on active tiles in tracing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: cc/resources/tile_manager.cc
diff --git a/cc/resources/tile_manager.cc b/cc/resources/tile_manager.cc
index b264b4754696f60d1590b9885d74b8bfee336fd1..27df613dabe12af0ab6ec2adcd1942214417ac1d 100644
--- a/cc/resources/tile_manager.cc
+++ b/cc/resources/tile_manager.cc
@@ -731,10 +731,13 @@ void TileManager::BasicStateAsValueInto(base::debug::TracedValue* state) const {
state->EndDictionary();
}
-void TileManager::AllTilesAsValueInto(base::debug::TracedValue* state) const {
+void TileManager::AllTilesAsValueInto(
+ base::debug::TracedValue* state,
+ const std::set<const Tile*>& active_tiles) const {
for (TileMap::const_iterator it = tiles_.begin(); it != tiles_.end(); ++it) {
+ bool is_active = active_tiles.count(it->second) != 0;
state->BeginDictionary();
- it->second->AsValueInto(state);
+ it->second->AsValueInto(state, is_active);
state->EndDictionary();
}
}

Powered by Google App Engine
This is Rietveld 408576698