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

Unified Diff: cc/scheduler/begin_frame_source.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/resources/video_resource_updater_unittest.cc ('k') | cc/scheduler/scheduler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/scheduler/begin_frame_source.cc
diff --git a/cc/scheduler/begin_frame_source.cc b/cc/scheduler/begin_frame_source.cc
index d9cadc83e726f7ceaca6fb32298c279b18c1ccb5..1ee862bf89ba7d5b24c3a55b531336660bcc2c7b 100644
--- a/cc/scheduler/begin_frame_source.cc
+++ b/cc/scheduler/begin_frame_source.cc
@@ -210,12 +210,12 @@ scoped_ptr<SyntheticBeginFrameSource> SyntheticBeginFrameSource::Create(
base::TimeDelta initial_vsync_interval) {
scoped_ptr<DelayBasedTimeSource> time_source =
DelayBasedTimeSource::Create(initial_vsync_interval, task_runner);
- return make_scoped_ptr(new SyntheticBeginFrameSource(time_source.Pass()));
+ return make_scoped_ptr(new SyntheticBeginFrameSource(std::move(time_source)));
}
SyntheticBeginFrameSource::SyntheticBeginFrameSource(
scoped_ptr<DelayBasedTimeSource> time_source)
- : BeginFrameSourceBase(), time_source_(time_source.Pass()) {
+ : BeginFrameSourceBase(), time_source_(std::move(time_source)) {
time_source_->SetActive(false);
time_source_->SetClient(this);
}
« no previous file with comments | « cc/resources/video_resource_updater_unittest.cc ('k') | cc/scheduler/scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698