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

Unified Diff: cc/output/bsp_tree.cc

Issue 609663003: cc: Remove use of PassAs() and constructor-casting with scoped_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cc-passas: PassAs-presubmit-warning Created 6 years, 3 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/video_layer_impl.cc ('k') | cc/output/delegating_renderer_unittest.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 2755c0b77971aa407c96a20638a399380bb87329..e6596dab911887165ad2035d58708270ec511777 100644
--- a/cc/output/bsp_tree.cc
+++ b/cc/output/bsp_tree.cc
@@ -25,7 +25,7 @@ BspTree::BspTree(ScopedPtrDeque<DrawPolygon>* list) {
if (list->size() == 0)
return;
- root_ = scoped_ptr<BspNode>(new BspNode(list->take_front()));
+ root_ = make_scoped_ptr(new BspNode(list->take_front()));
BuildTree(root_.get(), list);
}
@@ -90,7 +90,7 @@ void BspTree::BuildTree(BspNode* node,
// Build the back subtree using the front of the back_list as our splitter.
if (back_list.size() > 0) {
- node->back_child = scoped_ptr<BspNode>(new BspNode(back_list.take_front()));
+ node->back_child = make_scoped_ptr(new BspNode(back_list.take_front()));
BuildTree(node->back_child.get(), &back_list);
}
« no previous file with comments | « cc/layers/video_layer_impl.cc ('k') | cc/output/delegating_renderer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698