| Index: cc/scheduler/scheduler.h
|
| diff --git a/cc/scheduler/scheduler.h b/cc/scheduler/scheduler.h
|
| index 0076b4ab4c9d2b2f4218a74227fcea3347d831c9..2c6c3305aed980229314a2498136197212b46ff6 100644
|
| --- a/cc/scheduler/scheduler.h
|
| +++ b/cc/scheduler/scheduler.h
|
| @@ -99,6 +99,7 @@ class CC_EXPORT Scheduler : public BeginFrameObserverMixIn {
|
|
|
| const SchedulerSettings& settings() const { return settings_; }
|
|
|
| + void SetAuthoritativeVSyncInterval(const base::TimeDelta& interval);
|
| void CommitVSyncParameters(base::TimeTicks timebase,
|
| base::TimeDelta interval);
|
| void SetEstimatedParentDrawTime(base::TimeDelta draw_time);
|
| @@ -146,12 +147,6 @@ class CC_EXPORT Scheduler : public BeginFrameObserverMixIn {
|
| bool PrepareTilesPending() const {
|
| return state_machine_.PrepareTilesPending();
|
| }
|
| - bool MainThreadIsInHighLatencyMode() const {
|
| - return state_machine_.MainThreadIsInHighLatencyMode();
|
| - }
|
| - bool BeginImplFrameDeadlinePending() const {
|
| - return !begin_impl_frame_deadline_task_.IsCancelled();
|
| - }
|
|
|
| base::TimeTicks AnticipatedDrawTime() const;
|
|
|
| @@ -171,8 +166,6 @@ class CC_EXPORT Scheduler : public BeginFrameObserverMixIn {
|
| void SetChildrenNeedBeginFrames(bool children_need_begin_frames);
|
| void SetVideoNeedsBeginFrames(bool video_needs_begin_frames);
|
|
|
| - void SetAuthoritativeVSyncInterval(const base::TimeDelta& interval);
|
| -
|
| protected:
|
| Scheduler(SchedulerClient* client,
|
| const SchedulerSettings& scheduler_settings,
|
| @@ -222,6 +215,11 @@ class CC_EXPORT Scheduler : public BeginFrameObserverMixIn {
|
| bool inside_process_scheduled_actions_;
|
| SchedulerStateMachine::Action inside_action_;
|
|
|
| + protected:
|
| + bool BeginImplFrameDeadlinePending() const {
|
| + return !begin_impl_frame_deadline_task_.IsCancelled();
|
| + }
|
| +
|
| private:
|
| void ScheduleBeginImplFrameDeadline();
|
| void ScheduleBeginImplFrameDeadlineIfNeeded();
|
| @@ -231,6 +229,7 @@ class CC_EXPORT Scheduler : public BeginFrameObserverMixIn {
|
| void DrawAndSwapIfPossible();
|
| void ProcessScheduledActions();
|
| bool CanCommitAndActivateBeforeDeadline() const;
|
| + bool CanDrawBeforeDeadline() const;
|
| void AdvanceCommitStateIfPossible();
|
| bool IsBeginMainFrameSentOrStarted() const;
|
| void BeginRetroFrame();
|
| @@ -239,6 +238,7 @@ class CC_EXPORT Scheduler : public BeginFrameObserverMixIn {
|
| void BeginImplFrame();
|
| void FinishImplFrame();
|
| void OnBeginImplFrameDeadline();
|
| +
|
| void PollToAdvanceCommitState();
|
|
|
| base::TimeDelta EstimatedParentDrawTime() {
|
|
|