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

Unified Diff: cc/trees/single_thread_proxy.cc

Issue 1455023002: cc: Replace Pass() with std::move() in some subdirs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pass-cc
Patch Set: pass-cc2: . Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/trees/occlusion_tracker_unittest.cc ('k') | cc/trees/thread_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/single_thread_proxy.cc
diff --git a/cc/trees/single_thread_proxy.cc b/cc/trees/single_thread_proxy.cc
index 3bcf018014a0815c09ed1e3c674ed151a317f312..46f26ff96574898533749909b4a0633729c1d2b2 100644
--- a/cc/trees/single_thread_proxy.cc
+++ b/cc/trees/single_thread_proxy.cc
@@ -29,7 +29,7 @@ scoped_ptr<Proxy> SingleThreadProxy::Create(
scoped_ptr<BeginFrameSource> external_begin_frame_source) {
return make_scoped_ptr(
new SingleThreadProxy(layer_tree_host, client, task_runner_provider,
- external_begin_frame_source.Pass()));
+ std::move(external_begin_frame_source)));
}
SingleThreadProxy::SingleThreadProxy(
@@ -40,7 +40,7 @@ SingleThreadProxy::SingleThreadProxy(
: layer_tree_host_(layer_tree_host),
client_(client),
task_runner_provider_(task_runner_provider),
- external_begin_frame_source_(external_begin_frame_source.Pass()),
+ external_begin_frame_source_(std::move(external_begin_frame_source)),
next_frame_is_newly_committed_frame_(false),
#if DCHECK_IS_ON()
inside_impl_frame_(false),
@@ -68,10 +68,11 @@ SingleThreadProxy::SingleThreadProxy(
CompositorTimingHistory::BROWSER_UMA,
layer_tree_host->rendering_stats_instrumentation()));
- scheduler_on_impl_thread_ = Scheduler::Create(
- this, scheduler_settings, layer_tree_host_->id(),
- task_runner_provider_->MainThreadTaskRunner(),
- external_begin_frame_source_.get(), compositor_timing_history.Pass());
+ scheduler_on_impl_thread_ =
+ Scheduler::Create(this, scheduler_settings, layer_tree_host_->id(),
+ task_runner_provider_->MainThreadTaskRunner(),
+ external_begin_frame_source_.get(),
+ std::move(compositor_timing_history));
}
}
@@ -424,7 +425,7 @@ void SingleThreadProxy::PostAnimationEventsToMainThreadOnImplThread(
"cc", "SingleThreadProxy::PostAnimationEventsToMainThreadOnImplThread");
DCHECK(task_runner_provider_->IsImplThread());
DebugScopedSetMainThread main(task_runner_provider_);
- layer_tree_host_->SetAnimationEvents(events.Pass());
+ layer_tree_host_->SetAnimationEvents(std::move(events));
}
bool SingleThreadProxy::IsInsideDraw() { return inside_draw_; }
@@ -504,8 +505,8 @@ void SingleThreadProxy::OnDrawForOutputSurface() {
void SingleThreadProxy::PostFrameTimingEventsOnImplThread(
scoped_ptr<FrameTimingTracker::CompositeTimingSet> composite_events,
scoped_ptr<FrameTimingTracker::MainFrameTimingSet> main_frame_events) {
- layer_tree_host_->RecordFrameTimingEvents(composite_events.Pass(),
- main_frame_events.Pass());
+ layer_tree_host_->RecordFrameTimingEvents(std::move(composite_events),
+ std::move(main_frame_events));
}
void SingleThreadProxy::CompositeImmediately(base::TimeTicks frame_begin_time) {
« no previous file with comments | « cc/trees/occlusion_tracker_unittest.cc ('k') | cc/trees/thread_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698