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

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: addressing comments 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/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..d4fc144b46bd6fa09d90ca857a542b554a28c6c6 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,14 +61,14 @@ class CC_SURFACES_EXPORT SurfaceManager {
private:
void GarbageCollectSurfaces();
- typedef base::hash_map<SurfaceId, Surface*> SurfaceMap;
+ using SurfaceMap = std::unordered_map<SurfaceId, Surface*, SurfaceIdHash>;
SurfaceMap surface_map_;
base::ObserverList<SurfaceDamageObserver> observer_list_;
base::ThreadChecker thread_checker_;
// List of surfaces to be destroyed, along with what sequences they're still
// waiting on.
- typedef std::list<Surface*> SurfaceDestroyList;
+ using SurfaceDestroyList = std::list<Surface*>;
SurfaceDestroyList surfaces_to_destroy_;
// Set of SurfaceSequences that have been satisfied by a frame but not yet
« no previous file with comments | « cc/surfaces/surface_id.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698