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 CCLayerSorter_h | 5 #ifndef CCLayerSorter_h |
6 #define CCLayerSorter_h | 6 #define CCLayerSorter_h |
7 | 7 |
| 8 #include "base/basictypes.h" |
8 #include "CCLayerImpl.h" | 9 #include "CCLayerImpl.h" |
9 #include "FloatPoint3D.h" | 10 #include "FloatPoint3D.h" |
10 #include "FloatQuad.h" | 11 #include "FloatQuad.h" |
11 #include "FloatRect.h" | 12 #include "FloatRect.h" |
12 #include <wtf/HashMap.h> | 13 #include <wtf/HashMap.h> |
13 #include <wtf/Noncopyable.h> | |
14 #include <wtf/Vector.h> | 14 #include <wtf/Vector.h> |
15 | 15 |
16 namespace WebKit { | 16 namespace WebKit { |
17 class WebTransformationMatrix; | 17 class WebTransformationMatrix; |
18 } | 18 } |
19 | 19 |
20 namespace cc { | 20 namespace cc { |
21 | 21 |
22 class CCLayerSorter { | 22 class CCLayerSorter { |
23 WTF_MAKE_NONCOPYABLE(CCLayerSorter); | |
24 public: | 23 public: |
25 CCLayerSorter(); | 24 CCLayerSorter(); |
26 ~CCLayerSorter(); | 25 ~CCLayerSorter(); |
27 | 26 |
28 typedef Vector<CCLayerImpl*> LayerList; | 27 typedef Vector<CCLayerImpl*> LayerList; |
29 | 28 |
30 void sort(LayerList::iterator first, LayerList::iterator last); | 29 void sort(LayerList::iterator first, LayerList::iterator last); |
31 | 30 |
32 // Holds various useful properties derived from a layer's 3D outline. | 31 // Holds various useful properties derived from a layer's 3D outline. |
33 struct LayerShape { | 32 struct LayerShape { |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 NodeList m_nodes; | 76 NodeList m_nodes; |
78 EdgeList m_edges; | 77 EdgeList m_edges; |
79 float m_zRange; | 78 float m_zRange; |
80 | 79 |
81 typedef HashMap<GraphEdge*, GraphEdge*> EdgeMap; | 80 typedef HashMap<GraphEdge*, GraphEdge*> EdgeMap; |
82 EdgeMap m_activeEdges; | 81 EdgeMap m_activeEdges; |
83 | 82 |
84 void createGraphNodes(LayerList::iterator first, LayerList::iterator last); | 83 void createGraphNodes(LayerList::iterator first, LayerList::iterator last); |
85 void createGraphEdges(); | 84 void createGraphEdges(); |
86 void removeEdgeFromList(GraphEdge*, Vector<GraphEdge*>&); | 85 void removeEdgeFromList(GraphEdge*, Vector<GraphEdge*>&); |
| 86 |
| 87 DISALLOW_COPY_AND_ASSIGN(CCLayerSorter); |
87 }; | 88 }; |
88 | 89 |
89 } | 90 } |
90 #endif | 91 #endif |
OLD | NEW |