| 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 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 bool BeginFrameRequiredForAction() const; | 261 bool BeginFrameRequiredForAction() const; |
| 262 bool BeginFrameRequiredForChildren() const; | 262 bool BeginFrameRequiredForChildren() const; |
| 263 bool BeginFrameNeededForVideo() const; | 263 bool BeginFrameNeededForVideo() const; |
| 264 bool ProactiveBeginFrameWanted() const; | 264 bool ProactiveBeginFrameWanted() const; |
| 265 | 265 |
| 266 bool ShouldTriggerBeginImplFrameDeadlineImmediately() const; | 266 bool ShouldTriggerBeginImplFrameDeadlineImmediately() const; |
| 267 | 267 |
| 268 // True if we need to force activations to make forward progress. | 268 // True if we need to force activations to make forward progress. |
| 269 bool PendingActivationsShouldBeForced() const; | 269 bool PendingActivationsShouldBeForced() const; |
| 270 | 270 |
| 271 // TODO(brianderson): Remove this once NPAPI support is removed. |
| 272 bool SendingBeginMainFrameMightCauseDeadlock() const; |
| 273 |
| 271 bool ShouldAnimate() const; | 274 bool ShouldAnimate() const; |
| 272 bool ShouldBeginOutputSurfaceCreation() const; | 275 bool ShouldBeginOutputSurfaceCreation() const; |
| 273 bool ShouldDraw() const; | 276 bool ShouldDraw() const; |
| 274 bool ShouldActivatePendingTree() const; | 277 bool ShouldActivatePendingTree() const; |
| 275 bool ShouldSendBeginMainFrame() const; | 278 bool ShouldSendBeginMainFrame() const; |
| 276 bool ShouldCommit() const; | 279 bool ShouldCommit() const; |
| 277 bool ShouldPrepareTiles() const; | 280 bool ShouldPrepareTiles() const; |
| 278 bool ShouldInvalidateOutputSurface() const; | 281 bool ShouldInvalidateOutputSurface() const; |
| 279 | 282 |
| 280 void UpdateStateOnAnimate(); | 283 void UpdateStateOnAnimate(); |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 340 bool did_request_swap_in_last_frame_; | 343 bool did_request_swap_in_last_frame_; |
| 341 bool did_perform_swap_in_last_draw_; | 344 bool did_perform_swap_in_last_draw_; |
| 342 | 345 |
| 343 private: | 346 private: |
| 344 DISALLOW_COPY_AND_ASSIGN(SchedulerStateMachine); | 347 DISALLOW_COPY_AND_ASSIGN(SchedulerStateMachine); |
| 345 }; | 348 }; |
| 346 | 349 |
| 347 } // namespace cc | 350 } // namespace cc |
| 348 | 351 |
| 349 #endif // CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_ | 352 #endif // CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_ |
| OLD | NEW |