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

Unified Diff: components/exo/shared_memory.cc

Issue 1558513002: Global conversion of Pass()→std::move() on OS=linux (GYP edition) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: formatted 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
« no previous file with comments | « components/exo/buffer.cc ('k') | components/exo/surface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/exo/shared_memory.cc
diff --git a/components/exo/shared_memory.cc b/components/exo/shared_memory.cc
index 4d3b172d5c51fc837dff660b6eb99e791d4d2c8f..39e5afdc87d971c60624415a7922bf1c7b8fbec1 100644
--- a/components/exo/shared_memory.cc
+++ b/components/exo/shared_memory.cc
@@ -5,6 +5,7 @@
#include "components/exo/shared_memory.h"
#include <stddef.h>
+#include <utility>
#include "base/logging.h"
#include "base/trace_event/trace_event.h"
@@ -75,7 +76,8 @@ scoped_ptr<Buffer> SharedMemory::CreateBuffer(const gfx::Size& size,
return nullptr;
}
- return make_scoped_ptr(new Buffer(gpu_memory_buffer.Pass(), GL_TEXTURE_2D));
+ return make_scoped_ptr(
+ new Buffer(std::move(gpu_memory_buffer), GL_TEXTURE_2D));
}
} // namespace exo
« no previous file with comments | « components/exo/buffer.cc ('k') | components/exo/surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698