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 988693005: Chromium roll (https://codereview.chromium.org/976353002) (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: fixed bad android build patch Created 5 years, 9 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/test/test_web_graphics_context_3d.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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 TestBackToBackBeginFrameSource::Create(now_src_, test_task_runner_); 124 TestBackToBackBeginFrameSource::Create(now_src_, test_task_runner_);
125 return scheduler->unthrottled_frame_source_internal_.get(); 125 return scheduler->unthrottled_frame_source_internal_.get();
126 } 126 }
127 127
128 TestScheduler::TestScheduler( 128 TestScheduler::TestScheduler(
129 scoped_refptr<TestNowSource> now_src, 129 scoped_refptr<TestNowSource> now_src,
130 SchedulerClient* client, 130 SchedulerClient* client,
131 const SchedulerSettings& scheduler_settings, 131 const SchedulerSettings& scheduler_settings,
132 int layer_tree_host_id, 132 int layer_tree_host_id,
133 const scoped_refptr<OrderedSimpleTaskRunner>& test_task_runner, 133 const scoped_refptr<OrderedSimpleTaskRunner>& test_task_runner,
134 base::PowerMonitor* power_monitor,
135 TestSchedulerFrameSourcesConstructor* frame_sources_constructor, 134 TestSchedulerFrameSourcesConstructor* frame_sources_constructor,
136 scoped_ptr<BeginFrameSource> external_begin_frame_source) 135 scoped_ptr<BeginFrameSource> external_begin_frame_source)
137 : Scheduler(client, 136 : Scheduler(client,
138 scheduler_settings, 137 scheduler_settings,
139 layer_tree_host_id, 138 layer_tree_host_id,
140 test_task_runner, 139 test_task_runner,
141 power_monitor,
142 external_begin_frame_source.Pass(), 140 external_begin_frame_source.Pass(),
143 frame_sources_constructor), 141 frame_sources_constructor),
144 now_src_(now_src) { 142 now_src_(now_src) {
145 } 143 }
146 144
147 base::TimeTicks TestScheduler::Now() const { 145 base::TimeTicks TestScheduler::Now() const {
148 return now_src_->Now(); 146 return now_src_->Now();
149 } 147 }
150 148
151 TestScheduler::~TestScheduler() { 149 TestScheduler::~TestScheduler() {
152 } 150 }
153 151
154 } // namespace cc 152 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/scheduler_test_common.h ('k') | cc/test/test_web_graphics_context_3d.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698