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

Unified Diff: cc/output/bsp_tree.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/layers/texture_layer.cc ('k') | cc/output/gl_renderer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/bsp_tree.cc
diff --git a/cc/output/bsp_tree.cc b/cc/output/bsp_tree.cc
index 300ba2aebb98a3e5527818c4c776fbb203d36b54..1d203f3ff1ea3081ee22d4580f802b5303b00e84 100644
--- a/cc/output/bsp_tree.cc
+++ b/cc/output/bsp_tree.cc
@@ -24,7 +24,7 @@ BspTree::BspTree(std::deque<std::unique_ptr<DrawPolygon>>* list) {
if (list->size() == 0)
return;
- root_ = base::WrapUnique(new BspNode(PopFront(list)));
+ root_ = base::MakeUnique<BspNode>(PopFront(list));
BuildTree(root_.get(), list);
}
@@ -67,13 +67,13 @@ void BspTree::BuildTree(
// Build the back subtree using the front of the back_list as our splitter.
if (back_list.size() > 0) {
- node->back_child = base::WrapUnique(new BspNode(PopFront(&back_list)));
+ node->back_child = base::MakeUnique<BspNode>(PopFront(&back_list));
BuildTree(node->back_child.get(), &back_list);
}
// Build the front subtree using the front of the front_list as our splitter.
if (front_list.size() > 0) {
- node->front_child = base::WrapUnique(new BspNode(PopFront(&front_list)));
+ node->front_child = base::MakeUnique<BspNode>(PopFront(&front_list));
BuildTree(node->front_child.get(), &front_list);
}
}
« no previous file with comments | « cc/layers/texture_layer.cc ('k') | cc/output/gl_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698