| 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_STATE_MACHINE_H_ | 5 #ifndef CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_ |
| 6 #define CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_ | 6 #define CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 // TODO(zmo): This is temporary for debugging crbug.com/393331. | 257 // TODO(zmo): This is temporary for debugging crbug.com/393331. |
| 258 // We should remove it afterwards. | 258 // We should remove it afterwards. |
| 259 std::string GetStatesForDebugging() const; | 259 std::string GetStatesForDebugging() const; |
| 260 | 260 |
| 261 void SetChildrenNeedBeginFrames(bool children_need_begin_frames); | 261 void SetChildrenNeedBeginFrames(bool children_need_begin_frames); |
| 262 bool children_need_begin_frames() const { | 262 bool children_need_begin_frames() const { |
| 263 return children_need_begin_frames_; | 263 return children_need_begin_frames_; |
| 264 } | 264 } |
| 265 | 265 |
| 266 protected: | 266 protected: |
| 267 bool BeginFrameNeededToAnimateOrDraw() const; | 267 bool BeginFrameNeededToAnimateOrDrawOrCommit() const; |
| 268 bool BeginFrameNeededForChildren() const; | 268 bool BeginFrameNeededForChildren() const; |
| 269 bool ProactiveBeginFrameWanted() const; | 269 bool ProactiveBeginFrameWanted() const; |
| 270 | 270 |
| 271 bool ShouldTriggerBeginImplFrameDeadlineImmediately() const; | 271 bool ShouldTriggerBeginImplFrameDeadlineImmediately() const; |
| 272 | 272 |
| 273 // True if we need to force activations to make forward progress. | 273 // True if we need to force activations to make forward progress. |
| 274 bool PendingActivationsShouldBeForced() const; | 274 bool PendingActivationsShouldBeForced() const; |
| 275 | 275 |
| 276 bool ShouldAnimate() const; | 276 bool ShouldAnimate() const; |
| 277 bool ShouldBeginOutputSurfaceCreation() const; | 277 bool ShouldBeginOutputSurfaceCreation() const; |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 337 bool impl_latency_takes_priority_on_battery_; | 337 bool impl_latency_takes_priority_on_battery_; |
| 338 bool children_need_begin_frames_; | 338 bool children_need_begin_frames_; |
| 339 | 339 |
| 340 private: | 340 private: |
| 341 DISALLOW_COPY_AND_ASSIGN(SchedulerStateMachine); | 341 DISALLOW_COPY_AND_ASSIGN(SchedulerStateMachine); |
| 342 }; | 342 }; |
| 343 | 343 |
| 344 } // namespace cc | 344 } // namespace cc |
| 345 | 345 |
| 346 #endif // CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_ | 346 #endif // CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_ |
| OLD | NEW |