| 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 <memory> | 9 #include <memory> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 bool CanBeginMainFrameAndActivateBeforeDeadline( | 199 bool CanBeginMainFrameAndActivateBeforeDeadline( |
| 200 const BeginFrameArgs& args, | 200 const BeginFrameArgs& args, |
| 201 base::TimeDelta bmf_to_activate_estimate, | 201 base::TimeDelta bmf_to_activate_estimate, |
| 202 base::TimeTicks now) const; | 202 base::TimeTicks now) const; |
| 203 void AdvanceCommitStateIfPossible(); | 203 void AdvanceCommitStateIfPossible(); |
| 204 bool IsBeginMainFrameSentOrStarted() const; | 204 bool IsBeginMainFrameSentOrStarted() const; |
| 205 void BeginImplFrameWithDeadline(const BeginFrameArgs& args); | 205 void BeginImplFrameWithDeadline(const BeginFrameArgs& args); |
| 206 void BeginImplFrameSynchronous(const BeginFrameArgs& args); | 206 void BeginImplFrameSynchronous(const BeginFrameArgs& args); |
| 207 void BeginImplFrame(const BeginFrameArgs& args); | 207 void BeginImplFrame(const BeginFrameArgs& args); |
| 208 void FinishImplFrame(); | 208 void FinishImplFrame(); |
| 209 enum BeginFrameResult { kBeginFrameSkipped, kBeginFrameFinished }; |
| 210 void SendBeginFrameAck(const BeginFrameArgs& args, BeginFrameResult result); |
| 209 void OnBeginImplFrameDeadline(); | 211 void OnBeginImplFrameDeadline(); |
| 210 void PollToAdvanceCommitState(); | 212 void PollToAdvanceCommitState(); |
| 211 | 213 |
| 212 bool IsInsideAction(SchedulerStateMachine::Action action) { | 214 bool IsInsideAction(SchedulerStateMachine::Action action) { |
| 213 return inside_action_ == action; | 215 return inside_action_ == action; |
| 214 } | 216 } |
| 215 | 217 |
| 216 base::WeakPtrFactory<Scheduler> weak_factory_; | 218 base::WeakPtrFactory<Scheduler> weak_factory_; |
| 217 | 219 |
| 218 DISALLOW_COPY_AND_ASSIGN(Scheduler); | 220 DISALLOW_COPY_AND_ASSIGN(Scheduler); |
| 219 }; | 221 }; |
| 220 | 222 |
| 221 } // namespace cc | 223 } // namespace cc |
| 222 | 224 |
| 223 #endif // CC_SCHEDULER_SCHEDULER_H_ | 225 #endif // CC_SCHEDULER_SCHEDULER_H_ |
| OLD | NEW |