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

Unified Diff: cc/surfaces/onscreen_display_client.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/surfaces/display_unittest.cc ('k') | cc/surfaces/surface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/onscreen_display_client.cc
diff --git a/cc/surfaces/onscreen_display_client.cc b/cc/surfaces/onscreen_display_client.cc
index 06828b05321f62fb885e980b2a3df7fd2042f73a..50b64a78fc5d6fb2e2e7f2c04cf9b7a1142f8a72 100644
--- a/cc/surfaces/onscreen_display_client.cc
+++ b/cc/surfaces/onscreen_display_client.cc
@@ -21,7 +21,7 @@ OnscreenDisplayClient::OnscreenDisplayClient(
gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager,
const RendererSettings& settings,
scoped_refptr<base::SingleThreadTaskRunner> task_runner)
- : output_surface_(output_surface.Pass()),
+ : output_surface_(std::move(output_surface)),
task_runner_(task_runner),
display_(new Display(this,
manager,
@@ -52,7 +52,7 @@ bool OnscreenDisplayClient::Initialize() {
new DisplayScheduler(display_.get(), frame_source, task_runner_.get(),
output_surface_->capabilities().max_frames_pending));
- return display_->Initialize(output_surface_.Pass(), scheduler_.get());
+ return display_->Initialize(std::move(output_surface_), scheduler_.get());
}
void OnscreenDisplayClient::CommitVSyncParameters(base::TimeTicks timebase,
« no previous file with comments | « cc/surfaces/display_unittest.cc ('k') | cc/surfaces/surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698