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

Unified Diff: components/mus/gles2/command_buffer_driver.cc

Issue 1906623003: Convert //components/mus from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « components/mus/gles2/command_buffer_driver.h ('k') | components/mus/gles2/command_buffer_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/gles2/command_buffer_driver.cc
diff --git a/components/mus/gles2/command_buffer_driver.cc b/components/mus/gles2/command_buffer_driver.cc
index 3bb89a7f6108c34a9271adad9c83f65e06a0757f..055c4f7210e1e1bee90acb4b26acb27b1e69b210 100644
--- a/components/mus/gles2/command_buffer_driver.cc
+++ b/components/mus/gles2/command_buffer_driver.cc
@@ -174,7 +174,7 @@ bool CommandBufferDriver::Initialize(
// TODO(piman): other callbacks
const size_t kSize = sizeof(gpu::CommandBufferSharedState);
- scoped_ptr<gpu::BufferBacking> backing(
+ std::unique_ptr<gpu::BufferBacking> backing(
MojoBufferBacking::Create(std::move(shared_state), kSize));
if (!backing)
return false;
@@ -205,7 +205,7 @@ void CommandBufferDriver::RegisterTransferBuffer(
DCHECK(CalledOnValidThread());
// Take ownership of the memory and map it into this process.
// This validates the size.
- scoped_ptr<gpu::BufferBacking> backing(
+ std::unique_ptr<gpu::BufferBacking> backing(
MojoBufferBacking::Create(std::move(transfer_buffer), size));
if (!backing) {
DVLOG(0) << "Failed to map shared memory.";
« no previous file with comments | « components/mus/gles2/command_buffer_driver.h ('k') | components/mus/gles2/command_buffer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698