| 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 #include "cc/debug/rendering_stats_instrumentation.h" | 10 #include "cc/debug/rendering_stats_instrumentation.h" |
| 11 | 11 |
| 12 namespace cc { | 12 namespace cc { |
| 13 | 13 |
| 14 void FakeTimeSourceClient::OnTimerTick() { | 14 void FakeDelayBasedTimeSourceClient::OnTimerTick() { |
| 15 tick_called_ = true; | 15 tick_called_ = true; |
| 16 } | 16 } |
| 17 | 17 |
| 18 base::TimeTicks FakeDelayBasedTimeSource::Now() const { return now_; } | 18 base::TimeTicks FakeDelayBasedTimeSource::Now() const { return now_; } |
| 19 | 19 |
| 20 TestDelayBasedTimeSource::TestDelayBasedTimeSource( | 20 TestDelayBasedTimeSource::TestDelayBasedTimeSource( |
| 21 base::SimpleTestTickClock* now_src, | 21 base::SimpleTestTickClock* now_src, |
| 22 base::TimeDelta interval, | 22 base::TimeDelta interval, |
| 23 OrderedSimpleTaskRunner* task_runner) | 23 OrderedSimpleTaskRunner* task_runner) |
| 24 : DelayBasedTimeSource(interval, task_runner), now_src_(now_src) { | 24 : DelayBasedTimeSource(interval, task_runner), now_src_(now_src) { |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 } | 155 } |
| 156 | 156 |
| 157 base::TimeTicks TestScheduler::Now() const { | 157 base::TimeTicks TestScheduler::Now() const { |
| 158 return now_src_->NowTicks(); | 158 return now_src_->NowTicks(); |
| 159 } | 159 } |
| 160 | 160 |
| 161 TestScheduler::~TestScheduler() { | 161 TestScheduler::~TestScheduler() { |
| 162 } | 162 } |
| 163 | 163 |
| 164 } // namespace cc | 164 } // namespace cc |
| OLD | NEW |