summaryrefslogtreecommitdiffstats
path: root/cc/quads/render_pass_id.h
diff options
context:
space:
mode:
Diffstat (limited to 'cc/quads/render_pass_id.h')
-rw-r--r--cc/quads/render_pass_id.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/cc/quads/render_pass_id.h b/cc/quads/render_pass_id.h
index 5dff1e1..a0d48ea 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_