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 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
275 bool BeginFrameNeededForChildren() const; | 275 bool BeginFrameNeededForChildren() const; |
276 bool ProactiveBeginFrameWanted() const; | 276 bool ProactiveBeginFrameWanted() const; |
277 | 277 |
278 bool ShouldTriggerBeginImplFrameDeadlineImmediately() const; | 278 bool ShouldTriggerBeginImplFrameDeadlineImmediately() const; |
279 | 279 |
280 // True if we need to force activations to make forward progress. | 280 // True if we need to force activations to make forward progress. |
281 bool PendingActivationsShouldBeForced() const; | 281 bool PendingActivationsShouldBeForced() const; |
282 | 282 |
283 bool ShouldAnimate() const; | 283 bool ShouldAnimate() const; |
284 bool ShouldBeginOutputSurfaceCreation() const; | 284 bool ShouldBeginOutputSurfaceCreation() const; |
285 bool ShouldDrawForced() const; | |
286 bool ShouldDraw() const; | 285 bool ShouldDraw() const; |
287 bool ShouldActivatePendingTree() const; | 286 bool ShouldActivatePendingTree() const; |
288 bool ShouldSendBeginMainFrame() const; | 287 bool ShouldSendBeginMainFrame() const; |
289 bool ShouldCommit() const; | 288 bool ShouldCommit() const; |
290 bool ShouldPrepareTiles() const; | 289 bool ShouldPrepareTiles() const; |
291 | 290 |
292 void AdvanceCurrentFrameNumber(); | 291 void AdvanceCurrentFrameNumber(); |
293 bool HasAnimatedThisFrame() const; | 292 bool HasAnimatedThisFrame() const; |
294 bool HasSentBeginMainFrameThisFrame() const; | 293 bool HasSentBeginMainFrameThisFrame() const; |
295 bool HasRequestedSwapThisFrame() const; | 294 bool HasRequestedSwapThisFrame() const; |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
345 bool children_need_begin_frames_; | 344 bool children_need_begin_frames_; |
346 bool defer_commits_; | 345 bool defer_commits_; |
347 | 346 |
348 private: | 347 private: |
349 DISALLOW_COPY_AND_ASSIGN(SchedulerStateMachine); | 348 DISALLOW_COPY_AND_ASSIGN(SchedulerStateMachine); |
350 }; | 349 }; |
351 | 350 |
352 } // namespace cc | 351 } // namespace cc |
353 | 352 |
354 #endif // CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_ | 353 #endif // CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_ |
OLD | NEW |