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

Unified Diff: cc/trees/layer_tree_host_impl.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/tile_manager_unittest.cc ('k') | cc/trees/layer_tree_host_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_impl.cc
diff --git a/cc/trees/layer_tree_host_impl.cc b/cc/trees/layer_tree_host_impl.cc
index 57885eb15590c428e8246886e80685beed25e40a..dfbdabef7306db1faf92fb0b7048203bfef99318 100644
--- a/cc/trees/layer_tree_host_impl.cc
+++ b/cc/trees/layer_tree_host_impl.cc
@@ -2209,15 +2209,14 @@ void LayerTreeHostImpl::CreateTileManagerResources() {
&resource_pool_);
if (use_gpu_rasterization_) {
- image_decode_controller_ = base::WrapUnique(new GpuImageDecodeController(
+ image_decode_controller_ = base::MakeUnique<GpuImageDecodeController>(
output_surface_->worker_context_provider(),
settings_.renderer_settings.preferred_tile_format,
- settings_.gpu_decoded_image_budget_bytes));
+ settings_.gpu_decoded_image_budget_bytes);
} else {
- image_decode_controller_ =
- base::WrapUnique(new SoftwareImageDecodeController(
- settings_.renderer_settings.preferred_tile_format,
- settings_.software_decoded_image_budget_bytes));
+ image_decode_controller_ = base::MakeUnique<SoftwareImageDecodeController>(
+ settings_.renderer_settings.preferred_tile_format,
+ settings_.software_decoded_image_budget_bytes);
}
// Pass the single-threaded synchronous task graph runner to the worker pool
« no previous file with comments | « cc/tiles/tile_manager_unittest.cc ('k') | cc/trees/layer_tree_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698