| 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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 | 127 |
| 128 void NotifyBeginMainFrameStarted(); | 128 void NotifyBeginMainFrameStarted(); |
| 129 | 129 |
| 130 base::TimeTicks LastBeginImplFrameTime(); | 130 base::TimeTicks LastBeginImplFrameTime(); |
| 131 | 131 |
| 132 void SetDeferCommits(bool defer_commits); | 132 void SetDeferCommits(bool defer_commits); |
| 133 | 133 |
| 134 scoped_refptr<base::trace_event::ConvertableToTraceFormat> AsValue() const; | 134 scoped_refptr<base::trace_event::ConvertableToTraceFormat> AsValue() const; |
| 135 void AsValueInto(base::trace_event::TracedValue* value) const override; | 135 void AsValueInto(base::trace_event::TracedValue* value) const override; |
| 136 | 136 |
| 137 void SetContinuousPainting(bool continuous_painting) { | |
| 138 state_machine_.SetContinuousPainting(continuous_painting); | |
| 139 } | |
| 140 | |
| 141 void SetChildrenNeedBeginFrames(bool children_need_begin_frames); | 137 void SetChildrenNeedBeginFrames(bool children_need_begin_frames); |
| 142 void SetVideoNeedsBeginFrames(bool video_needs_begin_frames); | 138 void SetVideoNeedsBeginFrames(bool video_needs_begin_frames); |
| 143 | 139 |
| 144 void SetAuthoritativeVSyncInterval(const base::TimeDelta& interval); | 140 void SetAuthoritativeVSyncInterval(const base::TimeDelta& interval); |
| 145 | 141 |
| 146 protected: | 142 protected: |
| 147 Scheduler(SchedulerClient* client, | 143 Scheduler(SchedulerClient* client, |
| 148 const SchedulerSettings& scheduler_settings, | 144 const SchedulerSettings& scheduler_settings, |
| 149 int layer_tree_host_id, | 145 int layer_tree_host_id, |
| 150 base::SingleThreadTaskRunner* task_runner, | 146 base::SingleThreadTaskRunner* task_runner, |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 } | 222 } |
| 227 | 223 |
| 228 base::WeakPtrFactory<Scheduler> weak_factory_; | 224 base::WeakPtrFactory<Scheduler> weak_factory_; |
| 229 | 225 |
| 230 DISALLOW_COPY_AND_ASSIGN(Scheduler); | 226 DISALLOW_COPY_AND_ASSIGN(Scheduler); |
| 231 }; | 227 }; |
| 232 | 228 |
| 233 } // namespace cc | 229 } // namespace cc |
| 234 | 230 |
| 235 #endif // CC_SCHEDULER_SCHEDULER_H_ | 231 #endif // CC_SCHEDULER_SCHEDULER_H_ |
| OLD | NEW |