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

Unified Diff: cc/surfaces/surface_manager.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
« cc/surfaces/surface_factory.cc ('K') | « cc/surfaces/surface_id.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/surface_manager.h
diff --git a/cc/surfaces/surface_manager.h b/cc/surfaces/surface_manager.h
index 7466501545b022a27074c8cc0414a2f3295a5e22..6c10e38bd158a41920113f08f5c279cfefc8efd8 100644
--- a/cc/surfaces/surface_manager.h
+++ b/cc/surfaces/surface_manager.h
@@ -8,6 +8,7 @@
#include <stdint.h>
#include <list>
+#include <unordered_map>
#include <vector>
#include "base/containers/hash_tables.h"
@@ -60,7 +61,7 @@ class CC_SURFACES_EXPORT SurfaceManager {
private:
void GarbageCollectSurfaces();
- typedef base::hash_map<SurfaceId, Surface*> SurfaceMap;
+ typedef std::unordered_map<SurfaceId, Surface*, SurfaceIdHash> SurfaceMap;
danakj 2016/01/26 23:53:32 can use using here too?
lfg 2016/01/27 00:53:14 Done.
SurfaceMap surface_map_;
base::ObserverList<SurfaceDamageObserver> observer_list_;
base::ThreadChecker thread_checker_;
« cc/surfaces/surface_factory.cc ('K') | « cc/surfaces/surface_id.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698