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

Unified Diff: content/browser/compositor/software_output_device_mus.cc

Issue 1874893002: Convert //content/browser from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
Index: content/browser/compositor/software_output_device_mus.cc
diff --git a/content/browser/compositor/software_output_device_mus.cc b/content/browser/compositor/software_output_device_mus.cc
index ca5fb95df6a3e337760d18ca08aca940b6308f39..a577a2fc551d82c859c07c712ffc8e17c16a2208 100644
--- a/content/browser/compositor/software_output_device_mus.cc
+++ b/content/browser/compositor/software_output_device_mus.cc
@@ -56,8 +56,9 @@ void SoftwareOutputDeviceMus::EndPaint() {
// TODO(rjkroege): This makes an additional copy. Improve the
// bitmap_uploader API to remove.
- scoped_ptr<std::vector<unsigned char>> data(new std::vector<unsigned char>(
- pixels, pixels + rowBytes * viewport_pixel_size_.height()));
+ std::unique_ptr<std::vector<unsigned char>> data(
+ new std::vector<unsigned char>(
+ pixels, pixels + rowBytes * viewport_pixel_size_.height()));
uploader->SetBitmap(viewport_pixel_size_.width(),
viewport_pixel_size_.height(), std::move(data),
bitmap_uploader::BitmapUploader::BGRA);

Powered by Google App Engine
This is Rietveld 408576698