| Index: cc/surfaces/surface_id.h
|
| diff --git a/cc/surfaces/surface_id.h b/cc/surfaces/surface_id.h
|
| index 0ade6ab9135928c95d3a1e7cb9d70e4ef81e2078..f43759c2d6ce8b9f3dc3f5ef2520748b58c6aba1 100644
|
| --- a/cc/surfaces/surface_id.h
|
| +++ b/cc/surfaces/surface_id.h
|
| @@ -8,6 +8,8 @@
|
| #include <stddef.h>
|
| #include <stdint.h>
|
|
|
| +#include <functional>
|
| +
|
| #include "base/containers/hash_tables.h"
|
|
|
| namespace cc {
|
| @@ -33,6 +35,12 @@ inline bool operator<(const SurfaceId& a, const SurfaceId& b) {
|
| return a.id < b.id;
|
| }
|
|
|
| +struct SurfaceIdHash {
|
| + size_t operator()(const SurfaceId& key) const {
|
| + return std::hash<uint64_t>()(key.id);
|
| + }
|
| +};
|
| +
|
| } // namespace cc
|
|
|
| namespace BASE_HASH_NAMESPACE {
|
|
|