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

Unified Diff: gpu/blink/webgraphicscontext3d_in_process_command_buffer_impl.h

Issue 1859703002: convert //gpu to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: convert newly added scoped_ptr's 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
Index: gpu/blink/webgraphicscontext3d_in_process_command_buffer_impl.h
diff --git a/gpu/blink/webgraphicscontext3d_in_process_command_buffer_impl.h b/gpu/blink/webgraphicscontext3d_in_process_command_buffer_impl.h
index 2dd275d5d872695c3f481af457db51cb24eabba8..cb57ba2fb160ab1b5acb1815bb10e23d90a508a3 100644
--- a/gpu/blink/webgraphicscontext3d_in_process_command_buffer_impl.h
+++ b/gpu/blink/webgraphicscontext3d_in_process_command_buffer_impl.h
@@ -7,10 +7,10 @@
#include <stddef.h>
+#include <memory>
#include <vector>
#include "base/compiler_specific.h"
-#include "base/memory/scoped_ptr.h"
#include "gpu/blink/gpu_blink_export.h"
#include "gpu/blink/webgraphicscontext3d_impl.h"
#include "gpu/command_buffer/client/gl_in_process_context.h"
@@ -38,13 +38,13 @@ class GPU_BLINK_EXPORT WebGraphicsContext3DInProcessCommandBufferImpl
kNoLimit = 0,
};
- static scoped_ptr<WebGraphicsContext3DInProcessCommandBufferImpl>
+ static std::unique_ptr<WebGraphicsContext3DInProcessCommandBufferImpl>
CreateOffscreenContext(
const gpu::gles2::ContextCreationAttribHelper& attributes);
- static scoped_ptr<WebGraphicsContext3DInProcessCommandBufferImpl> WrapContext(
- scoped_ptr<::gpu::GLInProcessContext> context,
- const gpu::gles2::ContextCreationAttribHelper& attributes);
+ static std::unique_ptr<WebGraphicsContext3DInProcessCommandBufferImpl>
+ WrapContext(std::unique_ptr<::gpu::GLInProcessContext> context,
+ const gpu::gles2::ContextCreationAttribHelper& attributes);
~WebGraphicsContext3DInProcessCommandBufferImpl() override;
@@ -61,7 +61,7 @@ class GPU_BLINK_EXPORT WebGraphicsContext3DInProcessCommandBufferImpl
private:
WebGraphicsContext3DInProcessCommandBufferImpl(
- scoped_ptr<::gpu::GLInProcessContext> context,
+ std::unique_ptr<::gpu::GLInProcessContext> context,
const gpu::gles2::ContextCreationAttribHelper& attributes,
bool is_offscreen,
gfx::AcceleratedWidget window);
@@ -81,7 +81,7 @@ class GPU_BLINK_EXPORT WebGraphicsContext3DInProcessCommandBufferImpl
gfx::AcceleratedWidget window_;
// The context we use for OpenGL rendering.
- scoped_ptr< ::gpu::GLInProcessContext> context_;
+ std::unique_ptr<::gpu::GLInProcessContext> context_;
// The GLES2Implementation we use for OpenGL rendering.
::gpu::gles2::GLES2Implementation* real_gl_;
};

Powered by Google App Engine
This is Rietveld 408576698