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

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, 6 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
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 10
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 } 51 }
52 52
53 TestBackToBackBeginFrameSource::~TestBackToBackBeginFrameSource() { 53 TestBackToBackBeginFrameSource::~TestBackToBackBeginFrameSource() {
54 } 54 }
55 55
56 base::TimeTicks TestBackToBackBeginFrameSource::Now() { 56 base::TimeTicks TestBackToBackBeginFrameSource::Now() {
57 return now_src_->NowTicks(); 57 return now_src_->NowTicks();
58 } 58 }
59 59
60 TestSyntheticBeginFrameSource::TestSyntheticBeginFrameSource( 60 TestSyntheticBeginFrameSource::TestSyntheticBeginFrameSource(
61 OrderedSimpleTaskRunner* task_runner,
61 scoped_ptr<DelayBasedTimeSource> time_source) 62 scoped_ptr<DelayBasedTimeSource> time_source)
62 : SyntheticBeginFrameSource(time_source.Pass()) { 63 : SyntheticBeginFrameSource(task_runner, time_source.Pass()) {
63 } 64 }
64 65
65 TestSyntheticBeginFrameSource::~TestSyntheticBeginFrameSource() { 66 TestSyntheticBeginFrameSource::~TestSyntheticBeginFrameSource() {
66 } 67 }
67 68
68 scoped_ptr<TestScheduler> TestScheduler::Create( 69 scoped_ptr<TestScheduler> TestScheduler::Create(
69 base::SimpleTestTickClock* now_src, 70 base::SimpleTestTickClock* now_src,
70 SchedulerClient* client, 71 SchedulerClient* client,
71 const SchedulerSettings& settings, 72 const SchedulerSettings& settings,
72 int layer_tree_host_id, 73 int layer_tree_host_id,
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 } 106 }
106 107
107 base::TimeTicks TestScheduler::Now() const { 108 base::TimeTicks TestScheduler::Now() const {
108 return now_src_->NowTicks(); 109 return now_src_->NowTicks();
109 } 110 }
110 111
111 TestScheduler::~TestScheduler() { 112 TestScheduler::~TestScheduler() {
112 } 113 }
113 114
114 } // namespace cc 115 } // namespace cc
OLDNEW
« cc/scheduler/delay_based_time_source.cc ('K') | « cc/test/scheduler_test_common.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698