Chromium Code Reviews| Index: cc/scheduler/scheduler.h |
| diff --git a/cc/scheduler/scheduler.h b/cc/scheduler/scheduler.h |
| index 13daf008cc338935212784a6e4b188215ce54b2e..05b7c207d054e8b4f246ab1c925418744fc26bf1 100644 |
| --- a/cc/scheduler/scheduler.h |
| +++ b/cc/scheduler/scheduler.h |
| @@ -98,6 +98,7 @@ class CC_EXPORT Scheduler : public BeginFrameObserverMixIn { |
| const SchedulerSettings& settings() const { return settings_; } |
| + void SetAuthoritativeVSyncInterval(const base::TimeDelta& interval); |
|
mithro-old
2015/05/27 04:40:14
Moving this SetAuthoritativeVSyncInterval seems un
brianderson
2015/05/27 23:22:32
I'll move it to a separate CL.
|
| void CommitVSyncParameters(base::TimeTicks timebase, |
| base::TimeDelta interval); |
| void SetEstimatedParentDrawTime(base::TimeDelta draw_time); |
| @@ -145,9 +146,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(); |
| } |
| @@ -170,8 +168,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, |
| @@ -229,6 +225,8 @@ class CC_EXPORT Scheduler : public BeginFrameObserverMixIn { |
| void SetupPollingMechanisms(); |
| void DrawAndSwapIfPossible(); |
| void ProcessScheduledActions(); |
| + bool ShouldRecoverMainLatency() const; |
| + bool ShouldRecoverImplLatency() const; |
| bool CanCommitAndActivateBeforeDeadline() const; |
| void AdvanceCommitStateIfPossible(); |
| bool IsBeginMainFrameSentOrStarted() const; |