| 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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 return state_machine_.MainThreadIsInHighLatencyMode(); | 154 return state_machine_.MainThreadIsInHighLatencyMode(); |
| 155 } | 155 } |
| 156 bool BeginImplFrameDeadlinePending() const { | 156 bool BeginImplFrameDeadlinePending() const { |
| 157 return !begin_impl_frame_deadline_task_.IsCancelled(); | 157 return !begin_impl_frame_deadline_task_.IsCancelled(); |
| 158 } | 158 } |
| 159 | 159 |
| 160 base::TimeTicks AnticipatedDrawTime() const; | 160 base::TimeTicks AnticipatedDrawTime() const; |
| 161 | 161 |
| 162 void NotifyBeginMainFrameStarted(); | 162 void NotifyBeginMainFrameStarted(); |
| 163 | 163 |
| 164 base::TimeTicks LastBeginImplFrameTime(); | 164 base::TimeTicks LastBeginImplFrameTime() const; |
| 165 base::TimeTicks NextBeginImplFrameTimeIfRequested() const; |
| 165 | 166 |
| 166 void SetDeferCommits(bool defer_commits); | 167 void SetDeferCommits(bool defer_commits); |
| 167 | 168 |
| 168 scoped_refptr<base::trace_event::ConvertableToTraceFormat> AsValue() const; | 169 scoped_refptr<base::trace_event::ConvertableToTraceFormat> AsValue() const; |
| 169 void AsValueInto(base::trace_event::TracedValue* value) const override; | 170 void AsValueInto(base::trace_event::TracedValue* value) const override; |
| 170 | 171 |
| 171 void SetContinuousPainting(bool continuous_painting) { | 172 void SetContinuousPainting(bool continuous_painting) { |
| 172 state_machine_.SetContinuousPainting(continuous_painting); | 173 state_machine_.SetContinuousPainting(continuous_painting); |
| 173 } | 174 } |
| 174 | 175 |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 | 260 |
| 260 friend class SchedulerFrameSourcesConstructor; | 261 friend class SchedulerFrameSourcesConstructor; |
| 261 friend class TestSchedulerFrameSourcesConstructor; | 262 friend class TestSchedulerFrameSourcesConstructor; |
| 262 | 263 |
| 263 DISALLOW_COPY_AND_ASSIGN(Scheduler); | 264 DISALLOW_COPY_AND_ASSIGN(Scheduler); |
| 264 }; | 265 }; |
| 265 | 266 |
| 266 } // namespace cc | 267 } // namespace cc |
| 267 | 268 |
| 268 #endif // CC_SCHEDULER_SCHEDULER_H_ | 269 #endif // CC_SCHEDULER_SCHEDULER_H_ |
| OLD | NEW |