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

Unified Diff: cc/trees/layer_tree_host_impl.cc

Issue 1132443003: cc: Move raster_source from Tile to PrioritizedTile (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rename var Created 5 years, 7 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_manager.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 0bf40594b49d519a242d450b1859190577331892..126fd0943bc5e3ea4fdb29583854087045111cb9 100644
--- a/cc/trees/layer_tree_host_impl.cc
+++ b/cc/trees/layer_tree_host_impl.cc
@@ -3177,18 +3177,15 @@ void LayerTreeHostImpl::AsValueWithFrameInto(
MathUtil::AddToTracedValue("device_viewport_size", device_viewport_size_,
state);
- std::map<const Tile*, TilePriority> tile_map;
- active_tree_->GetAllTilesAndPrioritiesForTracing(&tile_map);
+ std::vector<PrioritizedTile> prioritized_tiles;
+ active_tree_->GetAllPrioritizedTilesForTracing(&prioritized_tiles);
if (pending_tree_)
- pending_tree_->GetAllTilesAndPrioritiesForTracing(&tile_map);
+ pending_tree_->GetAllPrioritizedTilesForTracing(&prioritized_tiles);
state->BeginArray("active_tiles");
- for (const auto& pair : tile_map) {
- const Tile* tile = pair.first;
- const TilePriority& priority = pair.second;
-
+ for (const auto& prioritized_tile : prioritized_tiles) {
state->BeginDictionary();
- tile->AsValueWithPriorityInto(priority, state);
+ prioritized_tile.AsValueInto(state);
state->EndDictionary();
}
state->EndArray();
« no previous file with comments | « cc/resources/tile_manager.cc ('k') | cc/trees/layer_tree_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698