| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |