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

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

Issue 845393002: cc: Create ProxyBeginFrameSource (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 5 years, 10 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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 } 125 }
126 126
127 TestScheduler::TestScheduler( 127 TestScheduler::TestScheduler(
128 scoped_refptr<TestNowSource> now_src, 128 scoped_refptr<TestNowSource> now_src,
129 SchedulerClient* client, 129 SchedulerClient* client,
130 const SchedulerSettings& scheduler_settings, 130 const SchedulerSettings& scheduler_settings,
131 int layer_tree_host_id, 131 int layer_tree_host_id,
132 const scoped_refptr<OrderedSimpleTaskRunner>& test_task_runner, 132 const scoped_refptr<OrderedSimpleTaskRunner>& test_task_runner,
133 base::PowerMonitor* power_monitor, 133 base::PowerMonitor* power_monitor,
134 TestSchedulerFrameSourcesConstructor* frame_sources_constructor, 134 TestSchedulerFrameSourcesConstructor* frame_sources_constructor,
135 scoped_ptr<BeginFrameSource> external_begin_frame_source) 135 scoped_ptr<BeginFrameSource> external_begin_frame_source,
136 ProxyBeginFrameSource* proxy_begin_frame_source)
136 : Scheduler(client, 137 : Scheduler(client,
137 scheduler_settings, 138 scheduler_settings,
138 layer_tree_host_id, 139 layer_tree_host_id,
139 test_task_runner, 140 test_task_runner,
140 power_monitor, 141 power_monitor,
141 external_begin_frame_source.Pass(), 142 external_begin_frame_source.Pass(),
143 proxy_begin_frame_source,
142 frame_sources_constructor), 144 frame_sources_constructor),
143 now_src_(now_src) { 145 now_src_(now_src) {
144 } 146 }
145 147
146 base::TimeTicks TestScheduler::Now() const { 148 base::TimeTicks TestScheduler::Now() const {
147 return now_src_->Now(); 149 return now_src_->Now();
148 } 150 }
149 151
150 TestScheduler::~TestScheduler() { 152 TestScheduler::~TestScheduler() {
151 } 153 }
152 154
153 } // namespace cc 155 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698