| OLD | NEW |
| 1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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_TREES_LAYER_SORTER_H_ | 5 #ifndef CC_TREES_LAYER_SORTER_H_ |
| 6 #define CC_TREES_LAYER_SORTER_H_ | 6 #define CC_TREES_LAYER_SORTER_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 | 35 |
| 36 namespace cc { | 36 namespace cc { |
| 37 struct GraphEdge; | 37 struct GraphEdge; |
| 38 | 38 |
| 39 // Holds various useful properties derived from a layer's 3D outline. | 39 // Holds various useful properties derived from a layer's 3D outline. |
| 40 struct CC_EXPORT LayerShape { | 40 struct CC_EXPORT LayerShape { |
| 41 LayerShape(); | 41 LayerShape(); |
| 42 LayerShape(float width, float height, const gfx::Transform& draw_transform); | 42 LayerShape(float width, float height, const gfx::Transform& draw_transform); |
| 43 ~LayerShape(); | 43 ~LayerShape(); |
| 44 | 44 |
| 45 float LayerZFromProjectedPoint(gfx::PointF p) const; | 45 float LayerZFromProjectedPoint(const gfx::PointF& p) const; |
| 46 | 46 |
| 47 gfx::Vector3dF layer_normal; | 47 gfx::Vector3dF layer_normal; |
| 48 gfx::Point3F transform_origin; | 48 gfx::Point3F transform_origin; |
| 49 gfx::QuadF projected_quad; | 49 gfx::QuadF projected_quad; |
| 50 gfx::RectF projected_bounds; | 50 gfx::RectF projected_bounds; |
| 51 }; | 51 }; |
| 52 | 52 |
| 53 struct GraphNode { | 53 struct GraphNode { |
| 54 explicit GraphNode(LayerImpl* layer_impl); | 54 explicit GraphNode(LayerImpl* layer_impl); |
| 55 ~GraphNode(); | 55 ~GraphNode(); |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 void CreateGraphNodes(LayerImplList::iterator first, | 105 void CreateGraphNodes(LayerImplList::iterator first, |
| 106 LayerImplList::iterator last); | 106 LayerImplList::iterator last); |
| 107 void CreateGraphEdges(); | 107 void CreateGraphEdges(); |
| 108 void RemoveEdgeFromList(GraphEdge* graph, std::vector<GraphEdge*>* list); | 108 void RemoveEdgeFromList(GraphEdge* graph, std::vector<GraphEdge*>* list); |
| 109 | 109 |
| 110 DISALLOW_COPY_AND_ASSIGN(LayerSorter); | 110 DISALLOW_COPY_AND_ASSIGN(LayerSorter); |
| 111 }; | 111 }; |
| 112 | 112 |
| 113 } // namespace cc | 113 } // namespace cc |
| 114 #endif // CC_TREES_LAYER_SORTER_H_ | 114 #endif // CC_TREES_LAYER_SORTER_H_ |
| OLD | NEW |