| 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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 const SchedulerSettings& scheduler_settings, | 178 const SchedulerSettings& scheduler_settings, |
| 179 int layer_tree_host_id, | 179 int layer_tree_host_id, |
| 180 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, | 180 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, |
| 181 scoped_ptr<BeginFrameSource> external_begin_frame_source, | 181 scoped_ptr<BeginFrameSource> external_begin_frame_source, |
| 182 SchedulerFrameSourcesConstructor* frame_sources_constructor); | 182 SchedulerFrameSourcesConstructor* frame_sources_constructor); |
| 183 | 183 |
| 184 // virtual for testing - Don't call these in the constructor or | 184 // virtual for testing - Don't call these in the constructor or |
| 185 // destructor! | 185 // destructor! |
| 186 virtual base::TimeTicks Now() const; | 186 virtual base::TimeTicks Now() const; |
| 187 | 187 |
| 188 int begin_frame_count_; |
| 188 scoped_ptr<BeginFrameSourceMultiplexer> frame_source_; | 189 scoped_ptr<BeginFrameSourceMultiplexer> frame_source_; |
| 189 BeginFrameSource* primary_frame_source_; | 190 BeginFrameSource* primary_frame_source_; |
| 190 BeginFrameSource* unthrottled_frame_source_; | 191 BeginFrameSource* unthrottled_frame_source_; |
| 191 | 192 |
| 192 // Storage when frame sources are internal | 193 // Storage when frame sources are internal |
| 193 scoped_ptr<BeginFrameSource> primary_frame_source_internal_; | 194 scoped_ptr<BeginFrameSource> primary_frame_source_internal_; |
| 194 scoped_ptr<BeginFrameSource> unthrottled_frame_source_internal_; | 195 scoped_ptr<BeginFrameSource> unthrottled_frame_source_internal_; |
| 195 | 196 |
| 196 VSyncParameterObserver* vsync_observer_; | 197 VSyncParameterObserver* vsync_observer_; |
| 197 base::TimeDelta authoritative_vsync_interval_; | 198 base::TimeDelta authoritative_vsync_interval_; |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 | 254 |
| 254 friend class SchedulerFrameSourcesConstructor; | 255 friend class SchedulerFrameSourcesConstructor; |
| 255 friend class TestSchedulerFrameSourcesConstructor; | 256 friend class TestSchedulerFrameSourcesConstructor; |
| 256 | 257 |
| 257 DISALLOW_COPY_AND_ASSIGN(Scheduler); | 258 DISALLOW_COPY_AND_ASSIGN(Scheduler); |
| 258 }; | 259 }; |
| 259 | 260 |
| 260 } // namespace cc | 261 } // namespace cc |
| 261 | 262 |
| 262 #endif // CC_SCHEDULER_SCHEDULER_H_ | 263 #endif // CC_SCHEDULER_SCHEDULER_H_ |
| OLD | NEW |