| Index: cc/scheduler_state_machine.h
|
| diff --git a/cc/scheduler_state_machine.h b/cc/scheduler_state_machine.h
|
| index 11868279a54020a238f84a5a76e8b386b417f84e..a68350659c64c329c237c5665f841ff7f5bd341e 100644
|
| --- a/cc/scheduler_state_machine.h
|
| +++ b/cc/scheduler_state_machine.h
|
| @@ -12,6 +12,8 @@
|
|
|
| namespace cc {
|
|
|
| +class SchedulerSettings;
|
| +
|
| // The SchedulerStateMachine decides how to coordinate main thread activites
|
| // like painting/running javascript with rendering and input activities on the
|
| // impl thread.
|
| @@ -24,7 +26,8 @@ namespace cc {
|
| // make testing cleaner.
|
| class CC_EXPORT SchedulerStateMachine {
|
| public:
|
| - SchedulerStateMachine();
|
| + // settings must be valid for the lifetime of this class.
|
| + SchedulerStateMachine(const SchedulerSettings* const settings);
|
|
|
| enum CommitState {
|
| COMMIT_STATE_IDLE,
|
| @@ -149,6 +152,8 @@ protected:
|
| bool hasDrawnThisFrame() const;
|
| bool hasAttemptedTreeActivationThisFrame() const;
|
|
|
| + const SchedulerSettings* const m_settings;
|
| +
|
| CommitState m_commitState;
|
|
|
| int m_currentFrameNumber;
|
|
|