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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 base::CancelableClosure begin_retro_frame_task_; | 189 base::CancelableClosure begin_retro_frame_task_; |
190 base::CancelableClosure begin_impl_frame_deadline_task_; | 190 base::CancelableClosure begin_impl_frame_deadline_task_; |
191 | 191 |
192 SchedulerStateMachine state_machine_; | 192 SchedulerStateMachine state_machine_; |
193 bool inside_process_scheduled_actions_; | 193 bool inside_process_scheduled_actions_; |
194 SchedulerStateMachine::Action inside_action_; | 194 SchedulerStateMachine::Action inside_action_; |
195 | 195 |
196 private: | 196 private: |
197 void ScheduleBeginImplFrameDeadline(); | 197 void ScheduleBeginImplFrameDeadline(); |
198 void ScheduleBeginImplFrameDeadlineIfNeeded(); | 198 void ScheduleBeginImplFrameDeadlineIfNeeded(); |
| 199 void BeginImplFrameNotExpectedSoon(); |
199 void SetupNextBeginFrameIfNeeded(); | 200 void SetupNextBeginFrameIfNeeded(); |
200 void PostBeginRetroFrameIfNeeded(); | 201 void PostBeginRetroFrameIfNeeded(); |
201 void DrawAndSwapIfPossible(); | 202 void DrawAndSwapIfPossible(); |
202 void DrawAndSwapForced(); | 203 void DrawAndSwapForced(); |
203 void ProcessScheduledActions(); | 204 void ProcessScheduledActions(); |
204 void UpdateCompositorTimingHistoryRecordingEnabled(); | 205 void UpdateCompositorTimingHistoryRecordingEnabled(); |
205 bool ShouldRecoverMainLatency(const BeginFrameArgs& args, | 206 bool ShouldRecoverMainLatency(const BeginFrameArgs& args, |
206 bool can_activate_before_deadline) const; | 207 bool can_activate_before_deadline) const; |
207 bool ShouldRecoverImplLatency(const BeginFrameArgs& args, | 208 bool ShouldRecoverImplLatency(const BeginFrameArgs& args, |
208 bool can_activate_before_deadline) const; | 209 bool can_activate_before_deadline) const; |
(...skipping 27 matching lines...) Expand all Loading... |
236 } | 237 } |
237 | 238 |
238 base::WeakPtrFactory<Scheduler> weak_factory_; | 239 base::WeakPtrFactory<Scheduler> weak_factory_; |
239 | 240 |
240 DISALLOW_COPY_AND_ASSIGN(Scheduler); | 241 DISALLOW_COPY_AND_ASSIGN(Scheduler); |
241 }; | 242 }; |
242 | 243 |
243 } // namespace cc | 244 } // namespace cc |
244 | 245 |
245 #endif // CC_SCHEDULER_SCHEDULER_H_ | 246 #endif // CC_SCHEDULER_SCHEDULER_H_ |
OLD | NEW |