| 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_H_ | 5 #ifndef CC_SCHEDULER_SCHEDULER_H_ |
| 6 #define CC_SCHEDULER_SCHEDULER_H_ | 6 #define CC_SCHEDULER_SCHEDULER_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 | 75 |
| 76 void CommitVSyncParameters(base::TimeTicks timebase, | 76 void CommitVSyncParameters(base::TimeTicks timebase, |
| 77 base::TimeDelta interval); | 77 base::TimeDelta interval); |
| 78 void SetEstimatedParentDrawTime(base::TimeDelta draw_time); | 78 void SetEstimatedParentDrawTime(base::TimeDelta draw_time); |
| 79 | 79 |
| 80 void SetVisible(bool visible); | 80 void SetVisible(bool visible); |
| 81 bool visible() { return state_machine_.visible(); } | 81 bool visible() { return state_machine_.visible(); } |
| 82 void SetCanDraw(bool can_draw); | 82 void SetCanDraw(bool can_draw); |
| 83 void NotifyReadyToActivate(); | 83 void NotifyReadyToActivate(); |
| 84 void NotifyReadyToDraw(); | 84 void NotifyReadyToDraw(); |
| 85 void SetThrottleFrameProduction(bool throttle); | |
| 86 | 85 |
| 87 void SetNeedsBeginMainFrame(); | 86 void SetNeedsBeginMainFrame(); |
| 88 // Requests a single impl frame (after the current frame if there is one | 87 // Requests a single impl frame (after the current frame if there is one |
| 89 // active). | 88 // active). |
| 90 void SetNeedsOneBeginImplFrame(); | 89 void SetNeedsOneBeginImplFrame(); |
| 91 | 90 |
| 92 void SetNeedsRedraw(); | 91 void SetNeedsRedraw(); |
| 93 | 92 |
| 94 void SetNeedsPrepareTiles(); | 93 void SetNeedsPrepareTiles(); |
| 95 | 94 |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 const SchedulerSettings settings_; | 160 const SchedulerSettings settings_; |
| 162 SchedulerClient* client_; | 161 SchedulerClient* client_; |
| 163 int layer_tree_host_id_; | 162 int layer_tree_host_id_; |
| 164 base::SingleThreadTaskRunner* task_runner_; | 163 base::SingleThreadTaskRunner* task_runner_; |
| 165 BeginFrameSource* external_frame_source_; | 164 BeginFrameSource* external_frame_source_; |
| 166 scoped_ptr<SyntheticBeginFrameSource> synthetic_frame_source_; | 165 scoped_ptr<SyntheticBeginFrameSource> synthetic_frame_source_; |
| 167 scoped_ptr<BackToBackBeginFrameSource> unthrottled_frame_source_; | 166 scoped_ptr<BackToBackBeginFrameSource> unthrottled_frame_source_; |
| 168 | 167 |
| 169 scoped_ptr<BeginFrameSourceMultiplexer> frame_source_; | 168 scoped_ptr<BeginFrameSourceMultiplexer> frame_source_; |
| 170 bool observing_frame_source_; | 169 bool observing_frame_source_; |
| 171 bool throttle_frame_production_; | |
| 172 | 170 |
| 173 base::TimeDelta authoritative_vsync_interval_; | 171 base::TimeDelta authoritative_vsync_interval_; |
| 174 base::TimeTicks last_vsync_timebase_; | 172 base::TimeTicks last_vsync_timebase_; |
| 175 | 173 |
| 176 scoped_ptr<CompositorTimingHistory> compositor_timing_history_; | 174 scoped_ptr<CompositorTimingHistory> compositor_timing_history_; |
| 177 base::TimeDelta estimated_parent_draw_time_; | 175 base::TimeDelta estimated_parent_draw_time_; |
| 178 | 176 |
| 179 std::deque<BeginFrameArgs> begin_retro_frame_args_; | 177 std::deque<BeginFrameArgs> begin_retro_frame_args_; |
| 180 SchedulerStateMachine::BeginImplFrameDeadlineMode | 178 SchedulerStateMachine::BeginImplFrameDeadlineMode |
| 181 begin_impl_frame_deadline_mode_; | 179 begin_impl_frame_deadline_mode_; |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 } | 233 } |
| 236 | 234 |
| 237 base::WeakPtrFactory<Scheduler> weak_factory_; | 235 base::WeakPtrFactory<Scheduler> weak_factory_; |
| 238 | 236 |
| 239 DISALLOW_COPY_AND_ASSIGN(Scheduler); | 237 DISALLOW_COPY_AND_ASSIGN(Scheduler); |
| 240 }; | 238 }; |
| 241 | 239 |
| 242 } // namespace cc | 240 } // namespace cc |
| 243 | 241 |
| 244 #endif // CC_SCHEDULER_SCHEDULER_H_ | 242 #endif // CC_SCHEDULER_SCHEDULER_H_ |
| OLD | NEW |