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

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

Issue 2324273002: Remove external begin frame source parameter and settings (Closed)
Patch Set: Add back comment, remove more febfs includes Created 4 years, 3 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') | cc/trees/channel_main.h » ('j') | 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 <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
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
OLDNEW
« no previous file with comments | « cc/test/scheduler_test_common.h ('k') | cc/trees/channel_main.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698