| OLD | NEW |
| 1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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_SCHEDULER_SCHEDULER_H_ | 5 #ifndef CC_SCHEDULER_SCHEDULER_H_ |
| 6 #define CC_SCHEDULER_SCHEDULER_H_ | 6 #define CC_SCHEDULER_SCHEDULER_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 return state_machine_.MainThreadIsInHighLatencyMode(); | 146 return state_machine_.MainThreadIsInHighLatencyMode(); |
| 147 } | 147 } |
| 148 bool BeginImplFrameDeadlinePending() const { | 148 bool BeginImplFrameDeadlinePending() const { |
| 149 return !begin_impl_frame_deadline_task_.IsCancelled(); | 149 return !begin_impl_frame_deadline_task_.IsCancelled(); |
| 150 } | 150 } |
| 151 | 151 |
| 152 base::TimeTicks AnticipatedDrawTime() const; | 152 base::TimeTicks AnticipatedDrawTime() const; |
| 153 | 153 |
| 154 void NotifyBeginMainFrameStarted(); | 154 void NotifyBeginMainFrameStarted(); |
| 155 | 155 |
| 156 base::TimeTicks LastBeginImplFrameTime(); | 156 base::TimeTicks LastBeginImplFrameTime() const; |
| 157 base::TimeTicks NextBeginImplFrameTimeIfRequested() const; |
| 157 | 158 |
| 158 void SetDeferCommits(bool defer_commits); | 159 void SetDeferCommits(bool defer_commits); |
| 159 | 160 |
| 160 scoped_refptr<base::trace_event::ConvertableToTraceFormat> AsValue() const; | 161 scoped_refptr<base::trace_event::ConvertableToTraceFormat> AsValue() const; |
| 161 void AsValueInto(base::trace_event::TracedValue* value) const override; | 162 void AsValueInto(base::trace_event::TracedValue* value) const override; |
| 162 | 163 |
| 163 void SetContinuousPainting(bool continuous_painting) { | 164 void SetContinuousPainting(bool continuous_painting) { |
| 164 state_machine_.SetContinuousPainting(continuous_painting); | 165 state_machine_.SetContinuousPainting(continuous_painting); |
| 165 } | 166 } |
| 166 | 167 |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 | 247 |
| 247 friend class SchedulerFrameSourcesConstructor; | 248 friend class SchedulerFrameSourcesConstructor; |
| 248 friend class TestSchedulerFrameSourcesConstructor; | 249 friend class TestSchedulerFrameSourcesConstructor; |
| 249 | 250 |
| 250 DISALLOW_COPY_AND_ASSIGN(Scheduler); | 251 DISALLOW_COPY_AND_ASSIGN(Scheduler); |
| 251 }; | 252 }; |
| 252 | 253 |
| 253 } // namespace cc | 254 } // namespace cc |
| 254 | 255 |
| 255 #endif // CC_SCHEDULER_SCHEDULER_H_ | 256 #endif // CC_SCHEDULER_SCHEDULER_H_ |
| OLD | NEW |