| 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 "CCLayerImpl.h" | 8 #include "CCLayerImpl.h" |
| 9 #include "FloatPoint3D.h" | 9 #include "FloatPoint3D.h" |
| 10 #include "FloatQuad.h" | 10 #include "FloatQuad.h" |
| 11 #include "FloatRect.h" | 11 #include "FloatRect.h" |
| 12 #include <wtf/HashMap.h> | 12 #include <wtf/HashMap.h> |
| 13 #include <wtf/Noncopyable.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 WebCore { | 20 namespace cc { |
| 21 | 21 |
| 22 class CCLayerSorter { | 22 class CCLayerSorter { |
| 23 WTF_MAKE_NONCOPYABLE(CCLayerSorter); | 23 WTF_MAKE_NONCOPYABLE(CCLayerSorter); |
| 24 public: | 24 public: |
| 25 CCLayerSorter() : m_zRange(0) { } | 25 CCLayerSorter() : m_zRange(0) { } |
| 26 | 26 |
| 27 typedef Vector<CCLayerImpl*> LayerList; | 27 typedef Vector<CCLayerImpl*> LayerList; |
| 28 | 28 |
| 29 void sort(LayerList::iterator first, LayerList::iterator last); | 29 void sort(LayerList::iterator first, LayerList::iterator last); |
| 30 | 30 |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 typedef HashMap<GraphEdge*, GraphEdge*> EdgeMap; | 79 typedef HashMap<GraphEdge*, GraphEdge*> EdgeMap; |
| 80 EdgeMap m_activeEdges; | 80 EdgeMap m_activeEdges; |
| 81 | 81 |
| 82 void createGraphNodes(LayerList::iterator first, LayerList::iterator last); | 82 void createGraphNodes(LayerList::iterator first, LayerList::iterator last); |
| 83 void createGraphEdges(); | 83 void createGraphEdges(); |
| 84 void removeEdgeFromList(GraphEdge*, Vector<GraphEdge*>&); | 84 void removeEdgeFromList(GraphEdge*, Vector<GraphEdge*>&); |
| 85 }; | 85 }; |
| 86 | 86 |
| 87 } | 87 } |
| 88 #endif | 88 #endif |
| OLD | NEW |