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

Side by Side Diff: cc/surfaces/surface_sequence.h

Issue 1539203002: Switch to standard integer types in cc/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more includes Created 5 years 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 unified diff | Download patch
« no previous file with comments | « cc/surfaces/surface_manager.cc ('k') | cc/test/begin_frame_args_test.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « cc/surfaces/surface_manager.cc ('k') | cc/test/begin_frame_args_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698