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

Side by Side Diff: cc/output/bsp_tree.cc

Issue 1437413002: cc: Remove ScopedPtrVector and cc::remove_if. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: just the vector Created 5 years, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/output/bsp_tree.h" 5 #include "cc/output/bsp_tree.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "cc/base/container_util.h" 10 #include "cc/base/container_util.h"
11 #include "cc/base/scoped_ptr_vector.h"
12 #include "cc/output/bsp_compare_result.h" 11 #include "cc/output/bsp_compare_result.h"
13 #include "cc/quads/draw_polygon.h" 12 #include "cc/quads/draw_polygon.h"
14 13
15 namespace cc { 14 namespace cc {
16 15
17 BspNode::BspNode(scoped_ptr<DrawPolygon> data) : node_data(data.Pass()) { 16 BspNode::BspNode(scoped_ptr<DrawPolygon> data) : node_data(data.Pass()) {
18 } 17 }
19 18
20 BspNode::~BspNode() { 19 BspNode::~BspNode() {
21 } 20 }
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 if (node.normal().z() > 0.0f) { 109 if (node.normal().z() > 0.0f) {
111 return BSP_FRONT; 110 return BSP_FRONT;
112 } 111 }
113 return BSP_BACK; 112 return BSP_BACK;
114 } 113 }
115 114
116 BspTree::~BspTree() { 115 BspTree::~BspTree() {
117 } 116 }
118 117
119 } // namespace cc 118 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698