From a57974f2b22abe5a96a8aae2dd7b47fe56bba307 Mon Sep 17 00:00:00 2001 From: lfg Date: Tue, 26 Jan 2016 19:35:49 -0800 Subject: Switch SurfaceId maps from base::hash_map to std::unordered_map. BUG=576864 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1640483003 Cr-Commit-Position: refs/heads/master@{#371705} --- cc/surfaces/surface_factory.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'cc/surfaces/surface_factory.h') diff --git a/cc/surfaces/surface_factory.h b/cc/surfaces/surface_factory.h index fdfad17..cd8a0e3 100644 --- a/cc/surfaces/surface_factory.h +++ b/cc/surfaces/surface_factory.h @@ -6,6 +6,7 @@ #define CC_SURFACES_SURFACE_FACTORY_H_ #include +#include #include "base/callback_forward.h" #include "base/containers/scoped_ptr_hash_map.h" @@ -85,8 +86,8 @@ class CC_SURFACES_EXPORT SurfaceFactory bool needs_sync_points_; - typedef base::ScopedPtrHashMap> - OwningSurfaceMap; + using OwningSurfaceMap = + std::unordered_map, SurfaceIdHash>; OwningSurfaceMap surface_map_; DISALLOW_COPY_AND_ASSIGN(SurfaceFactory); -- cgit v1.1