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

Unified Diff: cc/trees/layer_tree_host_impl.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/trees/layer_tree_host_impl.cc
diff --git a/cc/trees/layer_tree_host_impl.cc b/cc/trees/layer_tree_host_impl.cc
index f04a96cc1ee008b738d9d06839497a317f7ea1fc..82ae700ea9abeb29dd6d3e7996bd252c1b1cfe68 100644
--- a/cc/trees/layer_tree_host_impl.cc
+++ b/cc/trees/layer_tree_host_impl.cc
@@ -3219,9 +3219,15 @@ void LayerTreeHostImpl::AsValueWithFrameInto(
state->BeginDictionary("device_viewport_size");
MathUtil::AddToTracedValue(device_viewport_size_, state);
state->EndDictionary();
+
+ std::set<const Tile*> tiles;
+ active_tree_->AllTilesForTracingInto(&tiles);
+ if (pending_tree_)
+ pending_tree_->AllTilesForTracingInto(&tiles);
+
if (tile_manager_) {
state->BeginArray("tiles");
- tile_manager_->AllTilesAsValueInto(state);
+ tile_manager_->AllTilesAsValueInto(state, tiles);
enne (OOO) 2014/08/20 17:37:34 Something seems redundant here. Why do you need t
vmpstr 2014/08/20 17:41:11 TileManager's tiles include recycled tiles (in fac
enne (OOO) 2014/08/20 18:05:42 Should the TileManager::AllTilesAsValueInto get re
vmpstr 2014/08/20 18:18:58 Hmm. Well, I don't really know. I feel like it's a
state->EndArray();
state->BeginDictionary("tile_manager_basic_state");

Powered by Google App Engine
This is Rietveld 408576698