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

Unified Diff: gpu/blink/webgraphicscontext3d_in_process_command_buffer_impl.cc

Issue 1550693002: Global conversion of Pass()→std::move() on Linux (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
« no previous file with comments | « gin/per_isolate_data.cc ('k') | ipc/ipc_channel_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/blink/webgraphicscontext3d_in_process_command_buffer_impl.cc
diff --git a/gpu/blink/webgraphicscontext3d_in_process_command_buffer_impl.cc b/gpu/blink/webgraphicscontext3d_in_process_command_buffer_impl.cc
index d1d7e35f1af826293f47905cd19765e91d4d649d..cc18157c5251202277574e863167f5cfd2269e8f 100644
--- a/gpu/blink/webgraphicscontext3d_in_process_command_buffer_impl.cc
+++ b/gpu/blink/webgraphicscontext3d_in_process_command_buffer_impl.cc
@@ -5,6 +5,7 @@
#include "gpu/blink/webgraphicscontext3d_in_process_command_buffer_impl.h"
#include <GLES2/gl2.h>
+#include <utility>
#ifndef GL_GLEXT_PROTOTYPES
#define GL_GLEXT_PROTOTYPES 1
#endif
@@ -68,16 +69,13 @@ WebGraphicsContext3DInProcessCommandBufferImpl::WrapContext(
bool lose_context_when_out_of_memory = false; // Not used.
bool is_offscreen = true; // Not used.
return make_scoped_ptr(new WebGraphicsContext3DInProcessCommandBufferImpl(
- context.Pass(),
- attributes,
- lose_context_when_out_of_memory,
- is_offscreen,
- gfx::kNullAcceleratedWidget /* window. Not used. */));
+ std::move(context), attributes, lose_context_when_out_of_memory,
+ is_offscreen, gfx::kNullAcceleratedWidget /* window. Not used. */));
}
WebGraphicsContext3DInProcessCommandBufferImpl::
WebGraphicsContext3DInProcessCommandBufferImpl(
- scoped_ptr< ::gpu::GLInProcessContext> context,
+ scoped_ptr<::gpu::GLInProcessContext> context,
const blink::WebGraphicsContext3D::Attributes& attributes,
bool lose_context_when_out_of_memory,
bool is_offscreen,
@@ -85,7 +83,7 @@ WebGraphicsContext3DInProcessCommandBufferImpl::
: share_resources_(attributes.shareResources),
is_offscreen_(is_offscreen),
window_(window),
- context_(context.Pass()) {
+ context_(std::move(context)) {
ConvertAttributes(attributes, &attribs_);
attribs_.lose_context_when_out_of_memory = lose_context_when_out_of_memory;
}
« no previous file with comments | « gin/per_isolate_data.cc ('k') | ipc/ipc_channel_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698