OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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 CCLayerIterator_h | 5 #ifndef CCLayerIterator_h |
6 #define CCLayerIterator_h | 6 #define CCLayerIterator_h |
7 | 7 |
8 #include "CCLayerTreeHostCommon.h" | 8 #include "cc/layer_tree_host_common.h" |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
11 | 11 |
12 namespace cc { | 12 namespace cc { |
13 | 13 |
14 // These classes provide means to iterate over the RenderSurface-Layer tree. | 14 // These classes provide means to iterate over the RenderSurface-Layer tree. |
15 | 15 |
16 // Example code follows, for a tree of LayerChromium/RenderSurfaceChromium objec
ts. See below for details. | 16 // Example code follows, for a tree of LayerChromium/RenderSurfaceChromium objec
ts. See below for details. |
17 // | 17 // |
18 // void doStuffOnLayers(const std::vector<scoped_refptr<LayerChromium> >& render
SurfaceLayerList) | 18 // void doStuffOnLayers(const std::vector<scoped_refptr<LayerChromium> >& render
SurfaceLayerList) |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 | 199 |
200 private: | 200 private: |
201 template <typename LayerType, typename LayerList, typename RenderSurface
Type, typename ActionType> | 201 template <typename LayerType, typename LayerList, typename RenderSurface
Type, typename ActionType> |
202 void goToHighestInSubtree(CCLayerIterator<LayerType, LayerList, RenderSu
rfaceType, ActionType>&); | 202 void goToHighestInSubtree(CCLayerIterator<LayerType, LayerList, RenderSu
rfaceType, ActionType>&); |
203 }; | 203 }; |
204 }; | 204 }; |
205 | 205 |
206 } // namespace cc | 206 } // namespace cc |
207 | 207 |
208 #endif | 208 #endif |
OLD | NEW |