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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 TestBackToBackBeginFrameSource::Create(now_src_, test_task_runner_); | 124 TestBackToBackBeginFrameSource::Create(now_src_, test_task_runner_); |
125 return scheduler->unthrottled_frame_source_internal_.get(); | 125 return scheduler->unthrottled_frame_source_internal_.get(); |
126 } | 126 } |
127 | 127 |
128 TestScheduler::TestScheduler( | 128 TestScheduler::TestScheduler( |
129 scoped_refptr<TestNowSource> now_src, | 129 scoped_refptr<TestNowSource> now_src, |
130 SchedulerClient* client, | 130 SchedulerClient* client, |
131 const SchedulerSettings& scheduler_settings, | 131 const SchedulerSettings& scheduler_settings, |
132 int layer_tree_host_id, | 132 int layer_tree_host_id, |
133 const scoped_refptr<OrderedSimpleTaskRunner>& test_task_runner, | 133 const scoped_refptr<OrderedSimpleTaskRunner>& test_task_runner, |
134 base::PowerMonitor* power_monitor, | |
135 TestSchedulerFrameSourcesConstructor* frame_sources_constructor, | 134 TestSchedulerFrameSourcesConstructor* frame_sources_constructor, |
136 scoped_ptr<BeginFrameSource> external_begin_frame_source) | 135 scoped_ptr<BeginFrameSource> external_begin_frame_source) |
137 : Scheduler(client, | 136 : Scheduler(client, |
138 scheduler_settings, | 137 scheduler_settings, |
139 layer_tree_host_id, | 138 layer_tree_host_id, |
140 test_task_runner, | 139 test_task_runner, |
141 power_monitor, | |
142 external_begin_frame_source.Pass(), | 140 external_begin_frame_source.Pass(), |
143 frame_sources_constructor), | 141 frame_sources_constructor), |
144 now_src_(now_src) { | 142 now_src_(now_src) { |
145 } | 143 } |
146 | 144 |
147 base::TimeTicks TestScheduler::Now() const { | 145 base::TimeTicks TestScheduler::Now() const { |
148 return now_src_->Now(); | 146 return now_src_->Now(); |
149 } | 147 } |
150 | 148 |
151 TestScheduler::~TestScheduler() { | 149 TestScheduler::~TestScheduler() { |
152 } | 150 } |
153 | 151 |
154 } // namespace cc | 152 } // namespace cc |
OLD | NEW |