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

Unified Diff: cc/playback/float_clip_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/filter_display_item.h ('k') | cc/playback/raster_source.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/playback/float_clip_display_item.h
diff --git a/cc/playback/float_clip_display_item.h b/cc/playback/float_clip_display_item.h
index 41d9acebfa7232432f18e999e3ebfce17401490a..f4614010a130e98b307ec184846decc7818f00a3 100644
--- a/cc/playback/float_clip_display_item.h
+++ b/cc/playback/float_clip_display_item.h
@@ -7,9 +7,10 @@
#include <stddef.h>
+#include <memory>
#include <vector>
-#include "base/memory/scoped_ptr.h"
+#include "base/memory/ptr_util.h"
#include "cc/base/cc_export.h"
#include "cc/playback/display_item.h"
#include "ui/gfx/geometry/rect_f.h"
@@ -50,8 +51,8 @@ class CC_EXPORT EndFloatClipDisplayItem : public DisplayItem {
explicit EndFloatClipDisplayItem(const proto::DisplayItem& proto);
~EndFloatClipDisplayItem() override;
- static scoped_ptr<EndFloatClipDisplayItem> Create() {
- return make_scoped_ptr(new EndFloatClipDisplayItem());
+ static std::unique_ptr<EndFloatClipDisplayItem> Create() {
+ return base::WrapUnique(new EndFloatClipDisplayItem());
}
void ToProtobuf(proto::DisplayItem* proto,
« no previous file with comments | « cc/playback/filter_display_item.h ('k') | cc/playback/raster_source.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698