| 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 <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 base::TimeDelta FakeCompositorTimingHistory::DrawDurationEstimate() const { | 140 base::TimeDelta FakeCompositorTimingHistory::DrawDurationEstimate() const { |
| 141 return draw_duration_; | 141 return draw_duration_; |
| 142 } | 142 } |
| 143 | 143 |
| 144 TestScheduler::TestScheduler( | 144 TestScheduler::TestScheduler( |
| 145 base::SimpleTestTickClock* now_src, | 145 base::SimpleTestTickClock* now_src, |
| 146 SchedulerClient* client, | 146 SchedulerClient* client, |
| 147 const SchedulerSettings& scheduler_settings, | 147 const SchedulerSettings& scheduler_settings, |
| 148 int layer_tree_host_id, | 148 int layer_tree_host_id, |
| 149 OrderedSimpleTaskRunner* task_runner, | 149 OrderedSimpleTaskRunner* task_runner, |
| 150 BeginFrameSource* begin_frame_source, | |
| 151 std::unique_ptr<CompositorTimingHistory> compositor_timing_history) | 150 std::unique_ptr<CompositorTimingHistory> compositor_timing_history) |
| 152 : Scheduler(client, | 151 : Scheduler(client, |
| 153 scheduler_settings, | 152 scheduler_settings, |
| 154 layer_tree_host_id, | 153 layer_tree_host_id, |
| 155 task_runner, | 154 task_runner, |
| 156 begin_frame_source, | |
| 157 std::move(compositor_timing_history)), | 155 std::move(compositor_timing_history)), |
| 158 now_src_(now_src) {} | 156 now_src_(now_src) {} |
| 159 | 157 |
| 160 base::TimeTicks TestScheduler::Now() const { | 158 base::TimeTicks TestScheduler::Now() const { |
| 161 return now_src_->NowTicks(); | 159 return now_src_->NowTicks(); |
| 162 } | 160 } |
| 163 | 161 |
| 164 TestScheduler::~TestScheduler() { | 162 TestScheduler::~TestScheduler() { |
| 165 } | 163 } |
| 166 | 164 |
| 167 } // namespace cc | 165 } // namespace cc |
| OLD | NEW |