| 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 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 base::CancelableClosure poll_for_draw_triggers_task_; | 220 base::CancelableClosure poll_for_draw_triggers_task_; |
| 221 base::CancelableClosure advance_commit_state_task_; | 221 base::CancelableClosure advance_commit_state_task_; |
| 222 | 222 |
| 223 SchedulerStateMachine state_machine_; | 223 SchedulerStateMachine state_machine_; |
| 224 bool inside_process_scheduled_actions_; | 224 bool inside_process_scheduled_actions_; |
| 225 SchedulerStateMachine::Action inside_action_; | 225 SchedulerStateMachine::Action inside_action_; |
| 226 | 226 |
| 227 private: | 227 private: |
| 228 void ScheduleBeginImplFrameDeadline(); | 228 void ScheduleBeginImplFrameDeadline(); |
| 229 void RescheduleBeginImplFrameDeadlineIfNeeded(); | 229 void RescheduleBeginImplFrameDeadlineIfNeeded(); |
| 230 void SetupNextBeginFrameIfNeeded(); | 230 void SetNeedsBeginFrameIfNeeded(); |
| 231 void SetupPollingMechanisms(); | 231 void SetupPollingMechanisms(); |
| 232 void DrawAndSwapIfPossible(); | 232 void DrawAndSwapIfPossible(); |
| 233 void ProcessScheduledActions(); | 233 void ProcessScheduledActions(); |
| 234 bool CanCommitAndActivateBeforeDeadline() const; | 234 bool CanCommitAndActivateBeforeDeadline() const; |
| 235 void AdvanceCommitStateIfPossible(); | 235 void AdvanceCommitStateIfPossible(); |
| 236 bool IsBeginMainFrameSentOrStarted() const; | 236 bool IsBeginMainFrameSentOrStarted() const; |
| 237 void BeginImplFrame(const BeginFrameArgs& args); | 237 void BeginImplFrame(const BeginFrameArgs& args); |
| 238 void OnBeginImplFrameDeadline(); | 238 void OnBeginImplFrameDeadline(); |
| 239 void PollForAnticipatedDrawTriggers(); | 239 void PollForAnticipatedDrawTriggers(); |
| 240 void PollToAdvanceCommitState(); | 240 void PollToAdvanceCommitState(); |
| (...skipping 13 matching lines...) Expand all Loading... |
| 254 | 254 |
| 255 friend class SchedulerFrameSourcesConstructor; | 255 friend class SchedulerFrameSourcesConstructor; |
| 256 friend class TestSchedulerFrameSourcesConstructor; | 256 friend class TestSchedulerFrameSourcesConstructor; |
| 257 | 257 |
| 258 DISALLOW_COPY_AND_ASSIGN(Scheduler); | 258 DISALLOW_COPY_AND_ASSIGN(Scheduler); |
| 259 }; | 259 }; |
| 260 | 260 |
| 261 } // namespace cc | 261 } // namespace cc |
| 262 | 262 |
| 263 #endif // CC_SCHEDULER_SCHEDULER_H_ | 263 #endif // CC_SCHEDULER_SCHEDULER_H_ |
| OLD | NEW |