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

Unified Diff: cc/playback/clip_path_display_item.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/playback/clip_path_display_item.h ('k') | cc/playback/compositing_display_item.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/playback/clip_path_display_item.cc
diff --git a/cc/playback/clip_path_display_item.cc b/cc/playback/clip_path_display_item.cc
index 64ad81338baa68b72a206bad0104946c020fa97e..a5dccec8cc40dbf01bff5c47ce2c7853a51ed7ea 100644
--- a/cc/playback/clip_path_display_item.cc
+++ b/cc/playback/clip_path_display_item.cc
@@ -62,7 +62,7 @@ void ClipPathDisplayItem::ToProtobuf(
// Just use skia's serialization method for the SkPath for now.
size_t path_size = clip_path_.writeToMemory(nullptr);
if (path_size > 0) {
- scoped_ptr<uint8_t[]> buffer(new uint8_t[path_size]);
+ std::unique_ptr<uint8_t[]> buffer(new uint8_t[path_size]);
clip_path_.writeToMemory(buffer.get());
details->set_clip_path(buffer.get(), path_size);
}
« no previous file with comments | « cc/playback/clip_path_display_item.h ('k') | cc/playback/compositing_display_item.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698