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

Unified Diff: ui/gfx/generic_shared_memory_id.h

Issue 1615713003: Allow std::unordered_*. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: leak_detector fixes and git cl format 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 | « ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/generic_shared_memory_id.h
diff --git a/ui/gfx/generic_shared_memory_id.h b/ui/gfx/generic_shared_memory_id.h
index 51f553b2ddafb59aa88b38393cddede3910f53c0..b18c869e2cc61bea825ba0d15a588accf00cb68d 100644
--- a/ui/gfx/generic_shared_memory_id.h
+++ b/ui/gfx/generic_shared_memory_id.h
@@ -8,6 +8,8 @@
#include <stddef.h>
#include <stdint.h>
+#include "base/containers/hash_tables.h"
+#include "base/hash.h"
#include "base/trace_event/memory_allocator_dump.h"
#include "ui/gfx/gfx_export.h"
@@ -58,7 +60,7 @@ template <typename Second>
struct hash<std::pair<gfx::GenericSharedMemoryId, Second>> {
size_t operator()(
const std::pair<gfx::GenericSharedMemoryId, Second>& pair) const {
- return base::HashPair(pair.first.id, pair.second);
+ return base::HashInts(pair.first.id, pair.second);
}
};
« no previous file with comments | « ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698