| 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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 void SetDeferCommits(bool defer_commits); | 162 void SetDeferCommits(bool defer_commits); |
| 163 | 163 |
| 164 scoped_refptr<base::trace_event::ConvertableToTraceFormat> AsValue() const; | 164 scoped_refptr<base::trace_event::ConvertableToTraceFormat> AsValue() const; |
| 165 void AsValueInto(base::trace_event::TracedValue* value) const override; | 165 void AsValueInto(base::trace_event::TracedValue* value) const override; |
| 166 | 166 |
| 167 void SetContinuousPainting(bool continuous_painting) { | 167 void SetContinuousPainting(bool continuous_painting) { |
| 168 state_machine_.SetContinuousPainting(continuous_painting); | 168 state_machine_.SetContinuousPainting(continuous_painting); |
| 169 } | 169 } |
| 170 | 170 |
| 171 void SetChildrenNeedBeginFrames(bool children_need_begin_frames); | 171 void SetChildrenNeedBeginFrames(bool children_need_begin_frames); |
| 172 void SetVideoNeedsBeginFrames(bool video_needs_begin_frames); |
| 172 | 173 |
| 173 void SetAuthoritativeVSyncInterval(const base::TimeDelta& interval); | 174 void SetAuthoritativeVSyncInterval(const base::TimeDelta& interval); |
| 174 | 175 |
| 175 protected: | 176 protected: |
| 176 Scheduler(SchedulerClient* client, | 177 Scheduler(SchedulerClient* client, |
| 177 const SchedulerSettings& scheduler_settings, | 178 const SchedulerSettings& scheduler_settings, |
| 178 int layer_tree_host_id, | 179 int layer_tree_host_id, |
| 179 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, | 180 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, |
| 180 scoped_ptr<BeginFrameSource> external_begin_frame_source, | 181 scoped_ptr<BeginFrameSource> external_begin_frame_source, |
| 181 SchedulerFrameSourcesConstructor* frame_sources_constructor); | 182 SchedulerFrameSourcesConstructor* frame_sources_constructor); |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 | 253 |
| 253 friend class SchedulerFrameSourcesConstructor; | 254 friend class SchedulerFrameSourcesConstructor; |
| 254 friend class TestSchedulerFrameSourcesConstructor; | 255 friend class TestSchedulerFrameSourcesConstructor; |
| 255 | 256 |
| 256 DISALLOW_COPY_AND_ASSIGN(Scheduler); | 257 DISALLOW_COPY_AND_ASSIGN(Scheduler); |
| 257 }; | 258 }; |
| 258 | 259 |
| 259 } // namespace cc | 260 } // namespace cc |
| 260 | 261 |
| 261 #endif // CC_SCHEDULER_SCHEDULER_H_ | 262 #endif // CC_SCHEDULER_SCHEDULER_H_ |
| OLD | NEW |