| 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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 base::CancelableClosure poll_for_draw_triggers_task_; | 209 base::CancelableClosure poll_for_draw_triggers_task_; |
| 210 base::CancelableClosure advance_commit_state_task_; | 210 base::CancelableClosure advance_commit_state_task_; |
| 211 | 211 |
| 212 SchedulerStateMachine state_machine_; | 212 SchedulerStateMachine state_machine_; |
| 213 bool inside_process_scheduled_actions_; | 213 bool inside_process_scheduled_actions_; |
| 214 SchedulerStateMachine::Action inside_action_; | 214 SchedulerStateMachine::Action inside_action_; |
| 215 | 215 |
| 216 private: | 216 private: |
| 217 void ScheduleBeginImplFrameDeadline(); | 217 void ScheduleBeginImplFrameDeadline(); |
| 218 void RescheduleBeginImplFrameDeadlineIfNeeded(); | 218 void RescheduleBeginImplFrameDeadlineIfNeeded(); |
| 219 void SetupNextBeginFrameIfNeeded(); | 219 void SetNeedsBeginFrameIfNeeded(); |
| 220 void SetupPollingMechanisms(); | 220 void SetupPollingMechanisms(); |
| 221 void DrawAndSwapIfPossible(); | 221 void DrawAndSwapIfPossible(); |
| 222 void ProcessScheduledActions(); | 222 void ProcessScheduledActions(); |
| 223 bool CanCommitAndActivateBeforeDeadline() const; | 223 bool CanCommitAndActivateBeforeDeadline() const; |
| 224 void AdvanceCommitStateIfPossible(); | 224 void AdvanceCommitStateIfPossible(); |
| 225 bool IsBeginMainFrameSentOrStarted() const; | 225 bool IsBeginMainFrameSentOrStarted() const; |
| 226 void BeginImplFrame(const BeginFrameArgs& args); | 226 void BeginImplFrame(const BeginFrameArgs& args); |
| 227 void OnBeginImplFrameDeadline(); | 227 void OnBeginImplFrameDeadline(); |
| 228 void PollForAnticipatedDrawTriggers(); | 228 void PollForAnticipatedDrawTriggers(); |
| 229 void PollToAdvanceCommitState(); | 229 void PollToAdvanceCommitState(); |
| (...skipping 11 matching lines...) Expand all Loading... |
| 241 | 241 |
| 242 friend class SchedulerFrameSourcesConstructor; | 242 friend class SchedulerFrameSourcesConstructor; |
| 243 friend class TestSchedulerFrameSourcesConstructor; | 243 friend class TestSchedulerFrameSourcesConstructor; |
| 244 | 244 |
| 245 DISALLOW_COPY_AND_ASSIGN(Scheduler); | 245 DISALLOW_COPY_AND_ASSIGN(Scheduler); |
| 246 }; | 246 }; |
| 247 | 247 |
| 248 } // namespace cc | 248 } // namespace cc |
| 249 | 249 |
| 250 #endif // CC_SCHEDULER_SCHEDULER_H_ | 250 #endif // CC_SCHEDULER_SCHEDULER_H_ |
| OLD | NEW |