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

Unified Diff: cc/test/animation_timelines_test_common.cc

Issue 1587283002: Switch cc to std::unordered_*. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@unordered-map
Patch Set: Fix MSVC build issue Created 4 years, 11 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/test/animation_timelines_test_common.h ('k') | cc/test/fake_ui_resource_layer_tree_host_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/animation_timelines_test_common.cc
diff --git a/cc/test/animation_timelines_test_common.cc b/cc/test/animation_timelines_test_common.cc
index 46d9d53e0db73380e4950ace8555cfb44a96564f..d3b80f602da3713b82301da22d2253f9bd439b03 100644
--- a/cc/test/animation_timelines_test_common.cc
+++ b/cc/test/animation_timelines_test_common.cc
@@ -111,7 +111,7 @@ void TestHostClient::RegisterLayer(int layer_id, LayerTreeType tree_type) {
? layers_in_active_tree_
: layers_in_pending_tree_;
DCHECK(layers_in_tree.find(layer_id) == layers_in_tree.end());
- layers_in_tree.add(layer_id, TestLayer::Create());
+ layers_in_tree[layer_id] = TestLayer::Create();
DCHECK(host_);
host_->RegisterLayer(layer_id, tree_type);
@@ -171,7 +171,7 @@ TestLayer* TestHostClient::FindTestLayer(int layer_id,
auto kv = layers_in_tree.find(layer_id);
DCHECK(kv != layers_in_tree.end());
DCHECK(kv->second);
- return kv->second;
+ return kv->second.get();
}
TestAnimationDelegate::TestAnimationDelegate()
« no previous file with comments | « cc/test/animation_timelines_test_common.h ('k') | cc/test/fake_ui_resource_layer_tree_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698