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

Unified Diff: cc/playback/filter_display_item.h

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/playback/drawing_display_item.h ('k') | cc/playback/float_clip_display_item.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/playback/filter_display_item.h
diff --git a/cc/playback/filter_display_item.h b/cc/playback/filter_display_item.h
index b385538ec6f0f361ce68e61fbdcb5e1ccbdd03f4..396d6b5a68c85993180670ead7b236bd30ba6055 100644
--- a/cc/playback/filter_display_item.h
+++ b/cc/playback/filter_display_item.h
@@ -7,7 +7,9 @@
#include <stddef.h>
-#include "base/memory/scoped_ptr.h"
+#include <memory>
+
+#include "base/memory/ptr_util.h"
#include "cc/base/cc_export.h"
#include "cc/output/filter_operations.h"
#include "cc/playback/display_item.h"
@@ -50,8 +52,8 @@ class CC_EXPORT EndFilterDisplayItem : public DisplayItem {
explicit EndFilterDisplayItem(const proto::DisplayItem& proto);
~EndFilterDisplayItem() override;
- static scoped_ptr<EndFilterDisplayItem> Create() {
- return make_scoped_ptr(new EndFilterDisplayItem());
+ static std::unique_ptr<EndFilterDisplayItem> Create() {
+ return base::WrapUnique(new EndFilterDisplayItem());
}
void ToProtobuf(proto::DisplayItem* proto,
« no previous file with comments | « cc/playback/drawing_display_item.h ('k') | cc/playback/float_clip_display_item.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698