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