| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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 #include "cc/test/scheduler_test_common.h" | 5 #include "cc/test/scheduler_test_common.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 | 10 |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 } | 125 } |
| 126 | 126 |
| 127 TestScheduler::TestScheduler( | 127 TestScheduler::TestScheduler( |
| 128 scoped_refptr<TestNowSource> now_src, | 128 scoped_refptr<TestNowSource> now_src, |
| 129 SchedulerClient* client, | 129 SchedulerClient* client, |
| 130 const SchedulerSettings& scheduler_settings, | 130 const SchedulerSettings& scheduler_settings, |
| 131 int layer_tree_host_id, | 131 int layer_tree_host_id, |
| 132 const scoped_refptr<OrderedSimpleTaskRunner>& test_task_runner, | 132 const scoped_refptr<OrderedSimpleTaskRunner>& test_task_runner, |
| 133 base::PowerMonitor* power_monitor, | 133 base::PowerMonitor* power_monitor, |
| 134 TestSchedulerFrameSourcesConstructor* frame_sources_constructor, | 134 TestSchedulerFrameSourcesConstructor* frame_sources_constructor, |
| 135 scoped_ptr<BeginFrameSource> external_begin_frame_source) | 135 scoped_ptr<BeginFrameSource> external_begin_frame_source, |
| 136 ProxyBeginFrameSource* proxy_begin_frame_source) |
| 136 : Scheduler(client, | 137 : Scheduler(client, |
| 137 scheduler_settings, | 138 scheduler_settings, |
| 138 layer_tree_host_id, | 139 layer_tree_host_id, |
| 139 test_task_runner, | 140 test_task_runner, |
| 140 power_monitor, | 141 power_monitor, |
| 141 external_begin_frame_source.Pass(), | 142 external_begin_frame_source.Pass(), |
| 143 proxy_begin_frame_source, |
| 142 frame_sources_constructor), | 144 frame_sources_constructor), |
| 143 now_src_(now_src) { | 145 now_src_(now_src) { |
| 144 } | 146 } |
| 145 | 147 |
| 146 base::TimeTicks TestScheduler::Now() const { | 148 base::TimeTicks TestScheduler::Now() const { |
| 147 return now_src_->Now(); | 149 return now_src_->Now(); |
| 148 } | 150 } |
| 149 | 151 |
| 150 TestScheduler::~TestScheduler() { | 152 TestScheduler::~TestScheduler() { |
| 151 } | 153 } |
| 152 | 154 |
| 153 } // namespace cc | 155 } // namespace cc |
| OLD | NEW |