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

Unified Diff: gpu/gles2_conform_support/egl/display.cc

Issue 1859703002: convert //gpu to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master Created 4 years, 8 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 | « gpu/gles2_conform_support/egl/display.h ('k') | gpu/gles2_conform_support/egl/egl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/gles2_conform_support/egl/display.cc
diff --git a/gpu/gles2_conform_support/egl/display.cc b/gpu/gles2_conform_support/egl/display.cc
index a52d656924f4230decdf49048ed5fdb9f32cbc8a..f1ce3a2328bae611bfd75fd8d871b791be1a3650 100644
--- a/gpu/gles2_conform_support/egl/display.cc
+++ b/gpu/gles2_conform_support/egl/display.cc
@@ -162,7 +162,7 @@ EGLSurface Display::CreateWindowSurface(EGLConfig config,
transfer_buffer_manager_ = manager;
manager->Initialize();
}
- scoped_ptr<gpu::CommandBufferService> command_buffer(
+ std::unique_ptr<gpu::CommandBufferService> command_buffer(
new gpu::CommandBufferService(transfer_buffer_manager_.get()));
if (!command_buffer->Initialize())
return NULL;
@@ -233,13 +233,13 @@ EGLSurface Display::CreateWindowSurface(EGLConfig config,
command_buffer->SetGetBufferChangeCallback(base::Bind(
&gpu::CommandExecutor::SetGetBuffer, base::Unretained(executor_.get())));
- scoped_ptr<gpu::gles2::GLES2CmdHelper> cmd_helper(
+ std::unique_ptr<gpu::gles2::GLES2CmdHelper> cmd_helper(
new gpu::gles2::GLES2CmdHelper(command_buffer.get()));
if (!cmd_helper->Initialize(kCommandBufferSize))
return NULL;
- scoped_ptr<gpu::TransferBuffer> transfer_buffer(new gpu::TransferBuffer(
- cmd_helper.get()));
+ std::unique_ptr<gpu::TransferBuffer> transfer_buffer(
+ new gpu::TransferBuffer(cmd_helper.get()));
command_buffer_.reset(command_buffer.release());
transfer_buffer_.reset(transfer_buffer.release());
« no previous file with comments | « gpu/gles2_conform_support/egl/display.h ('k') | gpu/gles2_conform_support/egl/egl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698