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

Unified Diff: content/browser/gpu/gpu_ipc_browsertests.cc

Issue 1874893002: Convert //content/browser 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 | « content/browser/gpu/gpu_internals_ui.cc ('k') | content/browser/gpu/gpu_process_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/gpu/gpu_ipc_browsertests.cc
diff --git a/content/browser/gpu/gpu_ipc_browsertests.cc b/content/browser/gpu/gpu_ipc_browsertests.cc
index fd0ba6909dd515cb28cb2ae2b21882f20dd5aba5..d2181141d7720171df81d343671325a8161db35e 100644
--- a/content/browser/gpu/gpu_ipc_browsertests.cc
+++ b/content/browser/gpu/gpu_ipc_browsertests.cc
@@ -3,6 +3,7 @@
// found in the LICENSE file.
#include "base/command_line.h"
+#include "base/memory/ptr_util.h"
#include "base/run_loop.h"
#include "build/build_config.h"
#include "content/browser/gpu/browser_gpu_channel_host_factory.h"
@@ -28,7 +29,7 @@ const content::CauseForGpuLaunch kInitCause =
content::
CAUSE_FOR_GPU_LAUNCH_WEBGRAPHICSCONTEXT3DCOMMANDBUFFERIMPL_INITIALIZE;
-scoped_ptr<WebGraphicsContext3DCommandBufferImpl> CreateContext(
+std::unique_ptr<WebGraphicsContext3DCommandBufferImpl> CreateContext(
gpu::GpuChannelHost* gpu_channel_host) {
// This is for an offscreen context, so the default framebuffer doesn't need
// any alpha, depth, stencil, antialiasing.
@@ -41,7 +42,7 @@ scoped_ptr<WebGraphicsContext3DCommandBufferImpl> CreateContext(
attributes.bind_generates_resource = false;
bool share_resources = false;
bool automatic_flushes = false;
- return make_scoped_ptr(
+ return base::WrapUnique(
WebGraphicsContext3DCommandBufferImpl::CreateOffscreenContext(
gpu_channel_host, attributes, gfx::PreferIntegratedGpu,
share_resources, automatic_flushes, GURL(),
« no previous file with comments | « content/browser/gpu/gpu_internals_ui.cc ('k') | content/browser/gpu/gpu_process_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698