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

Unified Diff: cc/tiles/software_image_decode_controller.cc

Issue 2258833002: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 4 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/tiles/raster_tile_priority_queue_all.cc ('k') | cc/tiles/tile_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/tiles/software_image_decode_controller.cc
diff --git a/cc/tiles/software_image_decode_controller.cc b/cc/tiles/software_image_decode_controller.cc
index f262e86463ff86f9cc79f6f77619d049a3410e28..34f5f7244d70ebcd28852495799ad852493b46d2 100644
--- a/cc/tiles/software_image_decode_controller.cc
+++ b/cc/tiles/software_image_decode_controller.cc
@@ -544,9 +544,9 @@ SoftwareImageDecodeController::GetOriginalImageDecode(
return nullptr;
}
}
- return base::WrapUnique(
- new DecodedImage(decoded_info, std::move(decoded_pixels),
- SkSize::Make(0, 0), next_tracing_id_.GetNext()));
+ return base::MakeUnique<DecodedImage>(decoded_info, std::move(decoded_pixels),
+ SkSize::Make(0, 0),
+ next_tracing_id_.GetNext());
}
std::unique_ptr<SoftwareImageDecodeController::DecodedImage>
@@ -659,10 +659,10 @@ SoftwareImageDecodeController::GetScaledImageDecode(
DCHECK(result) << key.ToString();
}
- return base::WrapUnique(
- new DecodedImage(scaled_info, std::move(scaled_pixels),
- SkSize::Make(-key.src_rect().x(), -key.src_rect().y()),
- next_tracing_id_.GetNext()));
+ return base::MakeUnique<DecodedImage>(
+ scaled_info, std::move(scaled_pixels),
+ SkSize::Make(-key.src_rect().x(), -key.src_rect().y()),
+ next_tracing_id_.GetNext());
}
void SoftwareImageDecodeController::DrawWithImageFinished(
« no previous file with comments | « cc/tiles/raster_tile_priority_queue_all.cc ('k') | cc/tiles/tile_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698