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

Unified Diff: content/common/gpu/client/grcontext_for_webgraphicscontext3d.cc

Issue 1544293002: Convert Pass()→std::move() in //content (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/common/gpu/client/grcontext_for_webgraphicscontext3d.cc
diff --git a/content/common/gpu/client/grcontext_for_webgraphicscontext3d.cc b/content/common/gpu/client/grcontext_for_webgraphicscontext3d.cc
index 492b42ee124f7c97229beb52c2cb78fdbeb34579..5cd4944db68ed071ebbfd9efee8ca6da08f02562 100644
--- a/content/common/gpu/client/grcontext_for_webgraphicscontext3d.cc
+++ b/content/common/gpu/client/grcontext_for_webgraphicscontext3d.cc
@@ -6,6 +6,7 @@
#include <stddef.h>
#include <string.h>
+#include <utility>
#include "base/lazy_instance.h"
#include "base/macros.h"
@@ -89,8 +90,7 @@ void GrContextForWebGraphicsContext3D::FreeGpuResources() {
GrGLInterfaceForWebGraphicsContext3D::GrGLInterfaceForWebGraphicsContext3D(
scoped_ptr<gpu_blink::WebGraphicsContext3DImpl> context3d)
- : context3d_(context3d.Pass()) {
-}
+ : context3d_(std::move(context3d)) {}
void GrGLInterfaceForWebGraphicsContext3D::BindToCurrentThread() {
context_thread_checker_.DetachFromThread();
« no previous file with comments | « content/common/gpu/client/gpu_memory_buffer_impl_shared_memory.cc ('k') | content/common/gpu/gpu_channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698