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

Unified Diff: cc/output/output_surface.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/output/gl_renderer_unittest.cc ('k') | cc/output/output_surface_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/output_surface.cc
diff --git a/cc/output/output_surface.cc b/cc/output/output_surface.cc
index d41c1958bd53cfcf334c6ff5f80a1c190a6a7544..3430d18112814bbae01a7929313c104a9b0c39d6 100644
--- a/cc/output/output_surface.cc
+++ b/cc/output/output_surface.cc
@@ -122,7 +122,7 @@ OutputSurface::OutputSurface(
: client_(NULL),
context_provider_(context_provider),
worker_context_provider_(worker_context_provider),
- software_device_(software_device.Pass()),
+ software_device_(std::move(software_device)),
device_scale_factor_(-1),
external_stencil_test_enabled_(false),
weak_ptr_factory_(this) {
@@ -141,14 +141,12 @@ OutputSurface::OutputSurface(
}
OutputSurface::OutputSurface(scoped_ptr<SoftwareOutputDevice> software_device)
- : OutputSurface(nullptr, nullptr, software_device.Pass()) {
-}
+ : OutputSurface(nullptr, nullptr, std::move(software_device)) {}
OutputSurface::OutputSurface(
const scoped_refptr<ContextProvider>& context_provider,
scoped_ptr<SoftwareOutputDevice> software_device)
- : OutputSurface(context_provider, nullptr, software_device.Pass()) {
-}
+ : OutputSurface(context_provider, nullptr, std::move(software_device)) {}
void OutputSurface::CommitVSyncParameters(base::TimeTicks timebase,
base::TimeDelta interval) {
« no previous file with comments | « cc/output/gl_renderer_unittest.cc ('k') | cc/output/output_surface_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698