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

Unified Diff: cc/layers/layer_proto_converter.h

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/layers/layer.h ('k') | cc/layers/nine_patch_layer_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer_proto_converter.h
diff --git a/cc/layers/layer_proto_converter.h b/cc/layers/layer_proto_converter.h
index f821a5d539d161d495abc9db1679cbb0a6b043cc..94afcb91f7bfd82fa29ed7849efd69bba3c5c0c3 100644
--- a/cc/layers/layer_proto_converter.h
+++ b/cc/layers/layer_proto_converter.h
@@ -5,6 +5,8 @@
#ifndef CC_LAYERS_LAYER_PROTO_CONVERTER_H_
#define CC_LAYERS_LAYER_PROTO_CONVERTER_H_
+#include <unordered_map>
+
#include "base/macros.h"
#include "cc/base/cc_export.h"
#include "cc/layers/layer.h"
@@ -64,7 +66,7 @@ class CC_EXPORT LayerProtoConverter {
Layer* root_layer,
proto::LayerUpdate* layer_update);
- using LayerIdMap = base::hash_map<int, scoped_refptr<Layer>>;
+ using LayerIdMap = std::unordered_map<int, scoped_refptr<Layer>>;
// Start at |layer| and recursively add |layer| and all its children and
// special layers to |layer_id_map|.
static void RecursivelyFindAllLayers(const scoped_refptr<Layer>& layer,
« no previous file with comments | « cc/layers/layer.h ('k') | cc/layers/nine_patch_layer_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698