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

Unified Diff: mojo/gles2/gles2_impl.cc

Issue 1538823002: Convert Pass()→std::move() in mojo/ (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 | « mojo/gles2/gles2_context.cc ('k') | mojo/message_pump/handle_watcher_perftest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/gles2/gles2_impl.cc
diff --git a/mojo/gles2/gles2_impl.cc b/mojo/gles2/gles2_impl.cc
index 9e4fb9af9b1f879448019c7ecf9d4c333316d34f..a8c1231966773273be5d45ed6db3b30e51529819 100644
--- a/mojo/gles2/gles2_impl.cc
+++ b/mojo/gles2/gles2_impl.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "mojo/public/c/gles2/gles2.h"
+#include <utility>
#include "base/lazy_instance.h"
#include "base/threading/thread_local.h"
@@ -12,6 +12,7 @@
// Even though this isn't used here, we need to include it to get the symbols to
// be exported in component build.
#include "mojo/public/c/gles2/chromium_extension.h"
+#include "mojo/public/c/gles2/gles2.h"
using gles2::GLES2Context;
@@ -46,7 +47,7 @@ MojoGLES2Context MojoGLES2CreateContext(MojoHandle handle,
}
attribs.push_back(kNone);
scoped_ptr<GLES2Context> client(new GLES2Context(
- attribs, async_waiter, scoped_handle.Pass(), lost_callback, closure));
+ attribs, async_waiter, std::move(scoped_handle), lost_callback, closure));
if (!client->Initialize())
client.reset();
return client.release();
« no previous file with comments | « mojo/gles2/gles2_context.cc ('k') | mojo/message_pump/handle_watcher_perftest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698