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

Unified Diff: cc/test/fake_layer_tree_host_client.cc

Issue 1866203004: Convert //cc from scoped_ptr to std::unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: scopedptrcc: rebase 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 | « cc/test/fake_layer_tree_host_client.h ('k') | cc/test/fake_layer_tree_host_impl_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/fake_layer_tree_host_client.cc
diff --git a/cc/test/fake_layer_tree_host_client.cc b/cc/test/fake_layer_tree_host_client.cc
index 43e6d2ba576d3eb27dbb39313b8d100ca7f7237f..6de02bf6175e5c439f39c75a29359423e6a40d2b 100644
--- a/cc/test/fake_layer_tree_host_client.cc
+++ b/cc/test/fake_layer_tree_host_client.cc
@@ -4,6 +4,7 @@
#include "cc/test/fake_layer_tree_host_client.h"
+#include "base/memory/ptr_util.h"
#include "cc/output/context_provider.h"
#include "cc/test/fake_output_surface.h"
#include "cc/test/test_web_graphics_context_3d.h"
@@ -23,14 +24,14 @@ FakeLayerTreeHostClient::~FakeLayerTreeHostClient() {}
void FakeLayerTreeHostClient::RequestNewOutputSurface() {
DCHECK(host_);
- scoped_ptr<OutputSurface> surface;
+ std::unique_ptr<OutputSurface> surface;
if (use_software_rendering_) {
if (use_delegating_renderer_) {
surface = FakeOutputSurface::CreateDelegatingSoftware(
- make_scoped_ptr(new SoftwareOutputDevice));
+ base::WrapUnique(new SoftwareOutputDevice));
} else {
surface = FakeOutputSurface::CreateSoftware(
- make_scoped_ptr(new SoftwareOutputDevice));
+ base::WrapUnique(new SoftwareOutputDevice));
}
} else if (use_delegating_renderer_) {
surface = FakeOutputSurface::CreateDelegating3d();
« no previous file with comments | « cc/test/fake_layer_tree_host_client.h ('k') | cc/test/fake_layer_tree_host_impl_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698