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

Unified Diff: cc/surfaces/surface_factory.h

Issue 1640483003: Switch SurfaceId maps from base::hash_map to std::unordered_map. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebasing 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
Index: cc/surfaces/surface_factory.h
diff --git a/cc/surfaces/surface_factory.h b/cc/surfaces/surface_factory.h
index fdfad179059d3eb1ea4e55b36d588a2f025b9994..adaab4b92e7b8727484e7168fe4bf6bfe02faffc 100644
--- a/cc/surfaces/surface_factory.h
+++ b/cc/surfaces/surface_factory.h
@@ -6,6 +6,7 @@
#define CC_SURFACES_SURFACE_FACTORY_H_
#include <set>
+#include <unordered_map>
#include "base/callback_forward.h"
#include "base/containers/scoped_ptr_hash_map.h"
@@ -85,7 +86,7 @@ class CC_SURFACES_EXPORT SurfaceFactory
bool needs_sync_points_;
- typedef base::ScopedPtrHashMap<SurfaceId, scoped_ptr<Surface>>
+ typedef std::unordered_map<SurfaceId, scoped_ptr<Surface>, SurfaceIdHash>
danakj 2016/01/26 23:53:32 can you switch this to "using" instead of "typedef
lfg 2016/01/27 00:53:14 Done.
OwningSurfaceMap;
OwningSurfaceMap surface_map_;

Powered by Google App Engine
This is Rietveld 408576698