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

Unified Diff: cc/quads/render_pass_id.h

Issue 1587283002: Switch cc to std::unordered_*. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@unordered-map
Patch Set: 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/quads/render_pass_id.h
diff --git a/cc/quads/render_pass_id.h b/cc/quads/render_pass_id.h
index 11cb777204eaaed4709f9c2fa9dae0ca55e017ed..df2616e02576f5b6fdf253b8dcab02a646f0c2f1 100644
--- a/cc/quads/render_pass_id.h
+++ b/cc/quads/render_pass_id.h
@@ -9,7 +9,7 @@
#include <tuple>
-#include "base/containers/hash_tables.h"
+#include "base/containers/pair_hash.h"
#include "cc/base/cc_export.h"
namespace cc {
@@ -34,6 +34,12 @@ class CC_EXPORT RenderPassId {
}
};
+struct RenderPassIdHash {
+ size_t operator()(RenderPassId key) const {
+ return base::HashPair(key.layer_id, static_cast<int>(key.index));
+ }
+};
+
} // namespace cc
#endif // CC_QUADS_RENDER_PASS_ID_H_

Powered by Google App Engine
This is Rietveld 408576698