| 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 CC_LAYER_ITERATOR_H_ | 5 #ifndef CC_LAYER_ITERATOR_H_ |
| 6 #define CC_LAYER_ITERATOR_H_ | 6 #define CC_LAYER_ITERATOR_H_ |
| 7 | 7 |
| 8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "cc/cc_export.h" | 9 #include "cc/base/cc_export.h" |
| 10 #include "cc/layer_tree_host_common.h" | 10 #include "cc/layer_tree_host_common.h" |
| 11 | 11 |
| 12 namespace cc { | 12 namespace cc { |
| 13 | 13 |
| 14 // These classes provide means to iterate over the RenderSurfaceImpl-Layer tree. | 14 // These classes provide means to iterate over the RenderSurfaceImpl-Layer tree. |
| 15 | 15 |
| 16 // Example code follows, for a tree of Layer/RenderSurface objects. See below fo
r details. | 16 // Example code follows, for a tree of Layer/RenderSurface objects. See below fo
r details. |
| 17 // | 17 // |
| 18 // void doStuffOnLayers(const std::vector<scoped_refptr<Layer> >& renderSurfaceL
ayerList) | 18 // void doStuffOnLayers(const std::vector<scoped_refptr<Layer> >& renderSurfaceL
ayerList) |
| 19 // { | 19 // { |
| (...skipping 179 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(LayerIterator<LayerType, LayerList, RenderSurf
aceType, ActionType>&); | 202 void goToHighestInSubtree(LayerIterator<LayerType, LayerList, RenderSurf
aceType, ActionType>&); |
| 203 }; | 203 }; |
| 204 }; | 204 }; |
| 205 | 205 |
| 206 } // namespace cc | 206 } // namespace cc |
| 207 | 207 |
| 208 #endif // CC_LAYER_ITERATOR_H_ | 208 #endif // CC_LAYER_ITERATOR_H_ |
| OLD | NEW |