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

Unified Diff: cc/trees/layer_tree_host_impl.cc

Issue 1027563003: cc: Send updated tile priority with tiles into tracing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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
« no previous file with comments | « cc/resources/tile.cc ('k') | cc/trees/layer_tree_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 e66a3906e17db7d3124377331a65b3a661aa3ad5..9965d7a0c0445ce0b053ff1b540387acd3fad57b 100644
--- a/cc/trees/layer_tree_host_impl.cc
+++ b/cc/trees/layer_tree_host_impl.cc
@@ -6,6 +6,7 @@
#include <algorithm>
#include <limits>
+#include <map>
#include "base/basictypes.h"
#include "base/containers/hash_tables.h"
@@ -3244,19 +3245,18 @@ void LayerTreeHostImpl::AsValueWithFrameInto(
MathUtil::AddToTracedValue("device_viewport_size", device_viewport_size_,
state);
- std::set<const Tile*> tiles;
- active_tree_->GetAllTilesForTracing(&tiles);
+ std::map<const Tile*, TilePriority> tile_map;
+ active_tree_->GetAllTilesAndPrioritiesForTracing(&tile_map);
if (pending_tree_)
- pending_tree_->GetAllTilesForTracing(&tiles);
+ pending_tree_->GetAllTilesAndPrioritiesForTracing(&tile_map);
state->BeginArray("active_tiles");
- for (std::set<const Tile*>::const_iterator it = tiles.begin();
- it != tiles.end();
- ++it) {
- const Tile* tile = *it;
+ for (const auto& pair : tile_map) {
+ const Tile* tile = pair.first;
+ const TilePriority& priority = pair.second;
state->BeginDictionary();
- tile->AsValueInto(state);
+ tile->AsValueWithPriorityInto(priority, state);
state->EndDictionary();
}
state->EndArray();
« no previous file with comments | « cc/resources/tile.cc ('k') | cc/trees/layer_tree_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698