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

Unified Diff: content/browser/compositor/browser_compositor_output_surface.cc

Issue 1545243002: Convert Pass()→std::move() in //content/browser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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
Index: content/browser/compositor/browser_compositor_output_surface.cc
diff --git a/content/browser/compositor/browser_compositor_output_surface.cc b/content/browser/compositor/browser_compositor_output_surface.cc
index 38c8c26b25a569e2aa39eefb3809281a328f1391..f865702effe067a645bc434c72882385ed5195a5 100644
--- a/content/browser/compositor/browser_compositor_output_surface.cc
+++ b/content/browser/compositor/browser_compositor_output_surface.cc
@@ -4,6 +4,8 @@
#include "content/browser/compositor/browser_compositor_output_surface.h"
+#include <utility>
+
#include "base/bind.h"
#include "base/command_line.h"
#include "base/location.h"
@@ -27,18 +29,19 @@ BrowserCompositorOutputSurface::BrowserCompositorOutputSurface(
use_begin_frame_scheduling_(
base::CommandLine::ForCurrentProcess()
->HasSwitch(cc::switches::kEnableBeginFrameScheduling)) {
- overlay_candidate_validator_ = overlay_candidate_validator.Pass();
+ overlay_candidate_validator_ = std::move(overlay_candidate_validator);
Initialize();
}
BrowserCompositorOutputSurface::BrowserCompositorOutputSurface(
scoped_ptr<cc::SoftwareOutputDevice> software_device,
const scoped_refptr<ui::CompositorVSyncManager>& vsync_manager)
- : OutputSurface(software_device.Pass()),
+ : OutputSurface(std::move(software_device)),
vsync_manager_(vsync_manager),
reflector_(nullptr),
- use_begin_frame_scheduling_(base::CommandLine::ForCurrentProcess()->
- HasSwitch(cc::switches::kEnableBeginFrameScheduling)) {
+ use_begin_frame_scheduling_(
+ base::CommandLine::ForCurrentProcess()
+ ->HasSwitch(cc::switches::kEnableBeginFrameScheduling)) {
Initialize();
}
« no previous file with comments | « content/browser/cache_storage/cache_storage_manager_unittest.cc ('k') | content/browser/compositor/buffer_queue_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698