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

Unified Diff: mojo/gles2/control_thunks_impl.cc

Issue 2069663002: Some scoped_ptr -> std::unique_ptr conversion, especially under //mojo. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 6 months 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/command_buffer_client_impl.cc ('k') | mojo/gles2/gles2_context.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/gles2/control_thunks_impl.cc
diff --git a/mojo/gles2/control_thunks_impl.cc b/mojo/gles2/control_thunks_impl.cc
index 0cb679a2c0d448ab2afb4faf3b4b34de3a085819..bf6f320c9b20c44da032d731b49ed1f3a65af37a 100644
--- a/mojo/gles2/control_thunks_impl.cc
+++ b/mojo/gles2/control_thunks_impl.cc
@@ -4,6 +4,8 @@
#include "mojo/gles2/control_thunks_impl.h"
+#include <memory>
+
#include "mojo/gles2/gles2_context.h"
#include "mojo/public/cpp/system/message_pipe.h"
@@ -33,7 +35,7 @@ MGLContext ControlThunksImpl::CreateContext(
const struct MojoAsyncWaiter* async_waiter) {
mojo::MessagePipeHandle mph(command_buffer_handle);
mojo::ScopedMessagePipeHandle scoped_handle(mph);
- scoped_ptr<GLES2Context> client(
+ std::unique_ptr<GLES2Context> client(
new GLES2Context(async_waiter, scoped_handle.Pass(), lost_callback,
lost_callback_closure));
if (!client->Initialize())
« no previous file with comments | « mojo/gles2/command_buffer_client_impl.cc ('k') | mojo/gles2/gles2_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698