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

Unified Diff: cc/test/skia_common.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/test/skia_common.h ('k') | cc/test/surface_aggregator_test_helpers.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/skia_common.cc
diff --git a/cc/test/skia_common.cc b/cc/test/skia_common.cc
index c237c39e9b455344ac83e628fb761ac137c8bfbb..ca9933579a29385bcc0a6624251a3cb1e7bae0c0 100644
--- a/cc/test/skia_common.cc
+++ b/cc/test/skia_common.cc
@@ -42,8 +42,8 @@ bool AreDisplayListDrawingResultsSame(const gfx::Rect& layer_rect,
scoped_refptr<DisplayItemList> list_b) {
const size_t pixel_size = 4 * layer_rect.size().GetArea();
- scoped_ptr<unsigned char[]> pixels_a(new unsigned char[pixel_size]);
- scoped_ptr<unsigned char[]> pixels_b(new unsigned char[pixel_size]);
+ std::unique_ptr<unsigned char[]> pixels_a(new unsigned char[pixel_size]);
+ std::unique_ptr<unsigned char[]> pixels_b(new unsigned char[pixel_size]);
memset(pixels_a.get(), 0, pixel_size);
memset(pixels_b.get(), 0, pixel_size);
DrawDisplayList(pixels_a.get(), layer_rect, list_a);
« no previous file with comments | « cc/test/skia_common.h ('k') | cc/test/surface_aggregator_test_helpers.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698