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

Unified Diff: cc/output/bsp_tree.cc

Issue 595593002: Splitting of layers for correct intersections (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « no previous file | cc/output/bsp_walk_action.h » ('j') | cc/output/geometry_binding.cc » ('J')
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..facfd0977ad599fe369e6a20c2252f2070f0892f 100644
--- a/cc/output/bsp_tree.cc
+++ b/cc/output/bsp_tree.cc
@@ -53,20 +53,19 @@ void BspTree::BuildTree(BspNode* node,
// or front of the list.
switch (comparer_result) {
case BSP_FRONT:
- front_list.push_back(polygon_list->take_front().Pass());
+ front_list.push_front(polygon_list->take_front().Pass());
break;
case BSP_BACK:
- back_list.push_back(polygon_list->take_front().Pass());
+ back_list.push_front(polygon_list->take_front().Pass());
break;
case BSP_SPLIT:
{
scoped_ptr<DrawPolygon> polygon;
scoped_ptr<DrawPolygon> new_front;
scoped_ptr<DrawPolygon> new_back;
- bool split_result = false;
// Time to split this geometry, *it needs to be split by node_data.
polygon = polygon_list->take_front();
- split_result =
+ bool split_result =
polygon->Split(*(node->node_data), &new_front, &new_back);
DCHECK(split_result);
if (!split_result) {
« no previous file with comments | « no previous file | cc/output/bsp_walk_action.h » ('j') | cc/output/geometry_binding.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698