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

Unified Diff: cc/layers/viewport.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/layers/viewport.h ('k') | cc/output/begin_frame_args.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/viewport.cc
diff --git a/cc/layers/viewport.cc b/cc/layers/viewport.cc
index b54c9cce2d6ea3816093af4f259d6d429f508809..d80d40c9f2533f57f04651fe39829f282cede14a 100644
--- a/cc/layers/viewport.cc
+++ b/cc/layers/viewport.cc
@@ -5,6 +5,7 @@
#include "cc/layers/viewport.h"
#include "base/logging.h"
+#include "base/memory/ptr_util.h"
#include "cc/input/top_controls_manager.h"
#include "cc/trees/layer_tree_host_impl.h"
#include "cc/trees/layer_tree_impl.h"
@@ -14,9 +15,8 @@
namespace cc {
// static
-scoped_ptr<Viewport> Viewport::Create(
- LayerTreeHostImpl* host_impl) {
- return make_scoped_ptr(new Viewport(host_impl));
+std::unique_ptr<Viewport> Viewport::Create(LayerTreeHostImpl* host_impl) {
+ return base::WrapUnique(new Viewport(host_impl));
}
Viewport::Viewport(LayerTreeHostImpl* host_impl)
« no previous file with comments | « cc/layers/viewport.h ('k') | cc/output/begin_frame_args.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698