Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(337)

Side by Side Diff: cc/test/scheduler_test_common.cc

Issue 1200113003: cc: Cleanup DelayBasedTimeSource code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@task_runner_refptr
Patch Set: mithro's review Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/test/scheduler_test_common.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « cc/test/scheduler_test_common.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698