| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CC_SURFACES_SURFACE_SEQUENCE_H_ | 5 #ifndef CC_SURFACES_SURFACE_SEQUENCE_H_ |
| 6 #define CC_SURFACES_SURFACE_SEQUENCE_H_ | 6 #define CC_SURFACES_SURFACE_SEQUENCE_H_ |
| 7 | 7 |
| 8 #include <stddef.h> |
| 9 #include <stdint.h> |
| 10 |
| 8 #include <tuple> | 11 #include <tuple> |
| 9 | 12 |
| 10 #include "base/containers/hash_tables.h" | 13 #include "base/containers/hash_tables.h" |
| 11 | 14 |
| 12 namespace cc { | 15 namespace cc { |
| 13 | 16 |
| 14 // A per-surface-namespace sequence number that's used to coordinate | 17 // A per-surface-namespace sequence number that's used to coordinate |
| 15 // dependencies between frames. A sequence number may be satisfied once, and | 18 // dependencies between frames. A sequence number may be satisfied once, and |
| 16 // may be depended on once. | 19 // may be depended on once. |
| 17 struct SurfaceSequence { | 20 struct SurfaceSequence { |
| (...skipping 24 matching lines...) Expand all Loading... |
| 42 namespace BASE_HASH_NAMESPACE { | 45 namespace BASE_HASH_NAMESPACE { |
| 43 template <> | 46 template <> |
| 44 struct hash<cc::SurfaceSequence> { | 47 struct hash<cc::SurfaceSequence> { |
| 45 size_t operator()(cc::SurfaceSequence key) const { | 48 size_t operator()(cc::SurfaceSequence key) const { |
| 46 return base::HashPair(key.id_namespace, key.sequence); | 49 return base::HashPair(key.id_namespace, key.sequence); |
| 47 } | 50 } |
| 48 }; | 51 }; |
| 49 } // namespace BASE_HASH_NAMESPACE | 52 } // namespace BASE_HASH_NAMESPACE |
| 50 | 53 |
| 51 #endif // CC_SURFACES_SURFACE_SEQUENCE_H_ | 54 #endif // CC_SURFACES_SURFACE_SEQUENCE_H_ |
| OLD | NEW |