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

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

Issue 2136493002: Perform BSP polygon splitting and orientation selection in a single step. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2743
Patch Set: Remove all test changes. Created 4 years, 5 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 unified diff | Download patch
« no previous file with comments | « no previous file | cc/output/bsp_tree.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CC_OUTPUT_BSP_TREE_H_ 5 #ifndef CC_OUTPUT_BSP_TREE_H_
6 #define CC_OUTPUT_BSP_TREE_H_ 6 #define CC_OUTPUT_BSP_TREE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <deque> 10 #include <deque>
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 } else { 94 } else {
95 WalkInOrderVisitNodes<ActionHandlerType>(action_handler, 95 WalkInOrderVisitNodes<ActionHandlerType>(action_handler,
96 node, 96 node,
97 node->front_child.get(), 97 node->front_child.get(),
98 node->back_child.get(), 98 node->back_child.get(),
99 node->coplanars_back, 99 node->coplanars_back,
100 node->coplanars_front); 100 node->coplanars_front);
101 } 101 }
102 } 102 }
103 103
104 // Returns whether or not nodeA is on one or the other side of nodeB,
105 // coplanar, or whether it crosses nodeB's plane and needs to be split
106 static BspCompareResult GetNodePositionRelative(const DrawPolygon& node_a,
107 const DrawPolygon& node_b);
108 // Returns whether or not our viewer is in front of or behind the plane 104 // Returns whether or not our viewer is in front of or behind the plane
109 // defined by this polygon/node 105 // defined by this polygon/node
110 static BspCompareResult GetCameraPositionRelative(const DrawPolygon& node); 106 static BspCompareResult GetCameraPositionRelative(const DrawPolygon& node);
111 }; 107 };
112 108
113 } // namespace cc 109 } // namespace cc
114 110
115 #endif // CC_OUTPUT_BSP_TREE_H_ 111 #endif // CC_OUTPUT_BSP_TREE_H_
OLDNEW
« no previous file with comments | « no previous file | cc/output/bsp_tree.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698