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

Unified Diff: cc/debug/picture_debug_util.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/debug/micro_benchmark_impl.cc ('k') | cc/debug/rasterize_and_record_benchmark.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/debug/picture_debug_util.cc
diff --git a/cc/debug/picture_debug_util.cc b/cc/debug/picture_debug_util.cc
index dda4dce74a5524942ca6d3b1c482c0a66ec102b0..aef9ba8ae08fad35187690114ff9d4e5820b6086 100644
--- a/cc/debug/picture_debug_util.cc
+++ b/cc/debug/picture_debug_util.cc
@@ -7,11 +7,11 @@
#include <stddef.h>
#include <limits>
+#include <memory>
#include <vector>
#include "base/base64.h"
#include "base/logging.h"
-#include "base/memory/scoped_ptr.h"
#include "third_party/skia/include/core/SkBitmap.h"
#include "third_party/skia/include/core/SkData.h"
#include "third_party/skia/include/core/SkImageInfo.h"
@@ -71,7 +71,7 @@ void PictureDebugUtil::SerializeAsBase64(const SkPicture* picture,
picture->serialize(&stream, &serializer);
size_t serialized_size = stream.bytesWritten();
- scoped_ptr<char[]> serialized_picture(new char[serialized_size]);
+ std::unique_ptr<char[]> serialized_picture(new char[serialized_size]);
stream.copyTo(serialized_picture.get());
base::Base64Encode(
base::StringPiece(serialized_picture.get(), serialized_size), output);
« no previous file with comments | « cc/debug/micro_benchmark_impl.cc ('k') | cc/debug/rasterize_and_record_benchmark.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698