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

Unified Diff: gpu/tools/compositor_model_bench/render_models.cc

Issue 2257713003: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « gpu/ipc/service/gpu_command_buffer_stub.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/tools/compositor_model_bench/render_models.cc
diff --git a/gpu/tools/compositor_model_bench/render_models.cc b/gpu/tools/compositor_model_bench/render_models.cc
index a784706a3e91f26b668a2fefc5355c952d742e19..eedfe7d9049c2b4b0443fd15a64d5377c172b783 100644
--- a/gpu/tools/compositor_model_bench/render_models.cc
+++ b/gpu/tools/compositor_model_bench/render_models.cc
@@ -32,8 +32,8 @@ std::unique_ptr<RenderModelSimulator> ConstructSimulationModel(
int window_height) {
switch (model) {
case ForwardRenderModel:
- return base::WrapUnique(new ForwardRenderSimulator(
- std::move(render_tree_root), window_width, window_height));
+ return base::MakeUnique<ForwardRenderSimulator>(
+ std::move(render_tree_root), window_width, window_height);
default:
LOG(ERROR) << "Unrecognized render model. "
"If we know its name, then it's..." << ModelToString(model);
« no previous file with comments | « gpu/ipc/service/gpu_command_buffer_stub.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698