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

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: Fix MSVC build issue 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/quads/render_pass.h ('k') | cc/raster/task_graph_runner.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/quads/render_pass_id.h
diff --git a/cc/quads/render_pass_id.h b/cc/quads/render_pass_id.h
index 5dff1e1f521ec51b9831cb70b14f09530aeacc2c..a0d48ea82d39288cc0586b6d472c0e4074d9d190 100644
--- a/cc/quads/render_pass_id.h
+++ b/cc/quads/render_pass_id.h
@@ -9,6 +9,7 @@
#include <tuple>
+#include "base/hash.h"
#include "cc/base/cc_export.h"
namespace cc {
@@ -33,6 +34,12 @@ class CC_EXPORT RenderPassId {
}
};
+struct RenderPassIdHash {
+ size_t operator()(RenderPassId key) const {
+ return base::HashInts(key.layer_id, static_cast<int>(key.index));
+ }
+};
+
} // namespace cc
#endif // CC_QUADS_RENDER_PASS_ID_H_
« no previous file with comments | « cc/quads/render_pass.h ('k') | cc/raster/task_graph_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698