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> |
| 9 |
8 #include <deque> | 10 #include <deque> |
9 #include <vector> | 11 #include <vector> |
10 | 12 |
11 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
12 #include "cc/output/bsp_compare_result.h" | 14 #include "cc/output/bsp_compare_result.h" |
13 #include "cc/quads/draw_polygon.h" | 15 #include "cc/quads/draw_polygon.h" |
14 | 16 |
15 namespace cc { | 17 namespace cc { |
16 | 18 |
17 struct BspNode { | 19 struct BspNode { |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 static BspCompareResult GetNodePositionRelative(const DrawPolygon& node_a, | 106 static BspCompareResult GetNodePositionRelative(const DrawPolygon& node_a, |
105 const DrawPolygon& node_b); | 107 const DrawPolygon& node_b); |
106 // Returns whether or not our viewer is in front of or behind the plane | 108 // Returns whether or not our viewer is in front of or behind the plane |
107 // defined by this polygon/node | 109 // defined by this polygon/node |
108 static BspCompareResult GetCameraPositionRelative(const DrawPolygon& node); | 110 static BspCompareResult GetCameraPositionRelative(const DrawPolygon& node); |
109 }; | 111 }; |
110 | 112 |
111 } // namespace cc | 113 } // namespace cc |
112 | 114 |
113 #endif // CC_OUTPUT_BSP_TREE_H_ | 115 #endif // CC_OUTPUT_BSP_TREE_H_ |
OLD | NEW |