OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_OUTPUT_BEGIN_FRAME_ARGS_H_ | 5 #ifndef CC_OUTPUT_BEGIN_FRAME_ARGS_H_ |
6 #define CC_OUTPUT_BEGIN_FRAME_ARGS_H_ | 6 #define CC_OUTPUT_BEGIN_FRAME_ARGS_H_ |
7 | 7 |
8 #include "base/location.h" | 8 #include "base/location.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
(...skipping 24 matching lines...) Expand all Loading... |
35 #endif | 35 #endif |
36 | 36 |
37 namespace cc { | 37 namespace cc { |
38 | 38 |
39 struct CC_EXPORT BeginFrameArgs { | 39 struct CC_EXPORT BeginFrameArgs { |
40 enum BeginFrameArgsType { | 40 enum BeginFrameArgsType { |
41 INVALID, | 41 INVALID, |
42 NORMAL, | 42 NORMAL, |
43 SYNCHRONOUS, | 43 SYNCHRONOUS, |
44 MISSED, | 44 MISSED, |
| 45 // Not a real type, but used by the IPC system. Should always remain the |
| 46 // *last* value in this enum. |
| 47 BEGIN_FRAME_ARGS_TYPE_MAX, |
45 }; | 48 }; |
46 static const char* TypeToString(BeginFrameArgsType type); | 49 static const char* TypeToString(BeginFrameArgsType type); |
47 | 50 |
48 // Creates an invalid set of values. | 51 // Creates an invalid set of values. |
49 BeginFrameArgs(); | 52 BeginFrameArgs(); |
50 | 53 |
51 #ifdef NDEBUG | 54 #ifdef NDEBUG |
52 typedef const void* CreationLocation; | 55 typedef const void* CreationLocation; |
53 #else | 56 #else |
54 typedef const tracked_objects::Location& CreationLocation; | 57 typedef const tracked_objects::Location& CreationLocation; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 private: | 94 private: |
92 BeginFrameArgs(base::TimeTicks frame_time, | 95 BeginFrameArgs(base::TimeTicks frame_time, |
93 base::TimeTicks deadline, | 96 base::TimeTicks deadline, |
94 base::TimeDelta interval, | 97 base::TimeDelta interval, |
95 BeginFrameArgsType type); | 98 BeginFrameArgsType type); |
96 }; | 99 }; |
97 | 100 |
98 } // namespace cc | 101 } // namespace cc |
99 | 102 |
100 #endif // CC_OUTPUT_BEGIN_FRAME_ARGS_H_ | 103 #endif // CC_OUTPUT_BEGIN_FRAME_ARGS_H_ |
OLD | NEW |