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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 | 76 |
77 bool IsValid() const { return interval >= base::TimeDelta(); } | 77 bool IsValid() const { return interval >= base::TimeDelta(); } |
78 | 78 |
79 scoped_refptr<base::trace_event::ConvertableToTraceFormat> AsValue() const; | 79 scoped_refptr<base::trace_event::ConvertableToTraceFormat> AsValue() const; |
80 void AsValueInto(base::trace_event::TracedValue* dict) const; | 80 void AsValueInto(base::trace_event::TracedValue* dict) const; |
81 | 81 |
82 base::TimeTicks frame_time; | 82 base::TimeTicks frame_time; |
83 base::TimeTicks deadline; | 83 base::TimeTicks deadline; |
84 base::TimeDelta interval; | 84 base::TimeDelta interval; |
85 BeginFrameArgsType type; | 85 BeginFrameArgsType type; |
| 86 bool on_critical_path; |
86 | 87 |
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 |