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

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

Issue 619843002: cc: Make separate interface for BeginFrame ipc from OutputSurface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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/layer_tree_host.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 <string> 7 #include <string>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 10
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 return scheduler->background_frame_source_internal_.get(); 121 return scheduler->background_frame_source_internal_.get();
122 } 122 }
123 123
124 TestScheduler::TestScheduler( 124 TestScheduler::TestScheduler(
125 scoped_refptr<TestNowSource> now_src, 125 scoped_refptr<TestNowSource> now_src,
126 SchedulerClient* client, 126 SchedulerClient* client,
127 const SchedulerSettings& scheduler_settings, 127 const SchedulerSettings& scheduler_settings,
128 int layer_tree_host_id, 128 int layer_tree_host_id,
129 const scoped_refptr<OrderedSimpleTaskRunner>& test_task_runner, 129 const scoped_refptr<OrderedSimpleTaskRunner>& test_task_runner,
130 base::PowerMonitor* power_monitor, 130 base::PowerMonitor* power_monitor,
131 TestSchedulerFrameSourcesConstructor* frame_sources_constructor) 131 TestSchedulerFrameSourcesConstructor* frame_sources_constructor,
132 scoped_ptr<BeginFrameSource> external_begin_frame_source)
132 : Scheduler(client, 133 : Scheduler(client,
133 scheduler_settings, 134 scheduler_settings,
134 layer_tree_host_id, 135 layer_tree_host_id,
135 test_task_runner, 136 test_task_runner,
136 power_monitor, 137 power_monitor,
138 external_begin_frame_source.Pass(),
137 frame_sources_constructor), 139 frame_sources_constructor),
138 now_src_(now_src) { 140 now_src_(now_src) {
139 } 141 }
140 142
141 base::TimeTicks TestScheduler::Now() const { 143 base::TimeTicks TestScheduler::Now() const {
142 return now_src_->Now(); 144 return now_src_->Now();
143 } 145 }
144 146
145 TestScheduler::~TestScheduler() { 147 TestScheduler::~TestScheduler() {
146 } 148 }
147 149
148 } // namespace cc 150 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/scheduler_test_common.h ('k') | cc/trees/layer_tree_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698