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

Unified Diff: cc/trees/layer_tree_host_impl.cc

Issue 2825853002: Improvements to uses of base::SmallMap (Closed)
Patch Set: 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 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 098b7bd3b452072165fecfa49ae49c03ab400fe3..4e952185be888f843249fd166b9f70011244b48e 100644
--- a/cc/trees/layer_tree_host_impl.cc
+++ b/cc/trees/layer_tree_host_impl.cc
@@ -1161,7 +1161,7 @@ void LayerTreeHostImpl::RemoveRenderPasses(FrameData* frame) {
std::set<int> pass_exists;
brettw 2017/04/19 16:29:48 We discussed in chat also changing this to a flat_
// A set of RenderPassDrawQuads that we have seen (stored by the RenderPasses
// they refer to).
- base::SmallMap<std::unordered_map<int, int>> pass_references;
+ base::small_map<std::unordered_map<int, int>> pass_references;
danakj 2017/04/18 21:35:50 This should be a flat_map
// Iterate RenderPasses in draw order, removing empty render passes (except
// the root RenderPass).

Powered by Google App Engine
This is Rietveld 408576698