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 22 matching lines...) Expand all Loading... |
33 #else | 33 #else |
34 #define BEGINFRAME_FROM_HERE FROM_HERE | 34 #define BEGINFRAME_FROM_HERE FROM_HERE |
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 MISSED, | 44 MISSED, |
44 // Not a real type, but used by the IPC system. Should always remain the | 45 // Not a real type, but used by the IPC system. Should always remain the |
45 // *last* value in this enum. | 46 // *last* value in this enum. |
46 BEGIN_FRAME_ARGS_TYPE_MAX, | 47 BEGIN_FRAME_ARGS_TYPE_MAX, |
47 }; | 48 }; |
48 static const char* TypeToString(BeginFrameArgsType type); | 49 static const char* TypeToString(BeginFrameArgsType type); |
49 | 50 |
50 // Creates an invalid set of values. | 51 // Creates an invalid set of values. |
51 BeginFrameArgs(); | 52 BeginFrameArgs(); |
52 | 53 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 private: | 88 private: |
88 BeginFrameArgs(base::TimeTicks frame_time, | 89 BeginFrameArgs(base::TimeTicks frame_time, |
89 base::TimeTicks deadline, | 90 base::TimeTicks deadline, |
90 base::TimeDelta interval, | 91 base::TimeDelta interval, |
91 BeginFrameArgsType type); | 92 BeginFrameArgsType type); |
92 }; | 93 }; |
93 | 94 |
94 } // namespace cc | 95 } // namespace cc |
95 | 96 |
96 #endif // CC_OUTPUT_BEGIN_FRAME_ARGS_H_ | 97 #endif // CC_OUTPUT_BEGIN_FRAME_ARGS_H_ |
OLD | NEW |