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

Unified Diff: content/common/gpu/client/context_provider_command_buffer.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/context_provider_command_buffer.cc
diff --git a/content/common/gpu/client/context_provider_command_buffer.cc b/content/common/gpu/client/context_provider_command_buffer.cc
index c9b57d8bbe449ed5e7eb33f3d2837143d9744001..2560d78067b4e15e3d6709de7f7e08da6c800f96 100644
--- a/content/common/gpu/client/context_provider_command_buffer.cc
+++ b/content/common/gpu/client/context_provider_command_buffer.cc
@@ -5,8 +5,8 @@
#include "content/common/gpu/client/context_provider_command_buffer.h"
#include <stddef.h>
-
#include <set>
+#include <utility>
#include <vector>
#include "base/callback_helpers.h"
@@ -43,7 +43,7 @@ ContextProviderCommandBuffer::Create(
if (!context3d)
return NULL;
- return new ContextProviderCommandBuffer(context3d.Pass(), type);
+ return new ContextProviderCommandBuffer(std::move(context3d), type);
}
ContextProviderCommandBuffer::ContextProviderCommandBuffer(
@@ -51,8 +51,8 @@ ContextProviderCommandBuffer::ContextProviderCommandBuffer(
CommandBufferContextType type)
: context_type_(type),
debug_name_(CommandBufferContextTypeToString(type)) {
- gr_interface_ = skia::AdoptRef(new GrGLInterfaceForWebGraphicsContext3D(
- context3d.Pass()));
+ gr_interface_ = skia::AdoptRef(
+ new GrGLInterfaceForWebGraphicsContext3D(std::move(context3d)));
DCHECK(main_thread_checker_.CalledOnValidThread());
DCHECK(gr_interface_->WebContext3D());
context_thread_checker_.DetachFromThread();
« no previous file with comments | « content/common/gpu/client/command_buffer_proxy_impl.cc ('k') | content/common/gpu/client/gl_helper_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698