| 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_LAYERS_LAYER_ITERATOR_H_ | 5 #ifndef CC_LAYERS_LAYER_ITERATOR_H_ |
| 6 #define CC_LAYERS_LAYER_ITERATOR_H_ | 6 #define CC_LAYERS_LAYER_ITERATOR_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include "cc/base/cc_export.h" | 10 #include "cc/cc_export.h" |
| 11 #include "cc/layers/layer_impl.h" | 11 #include "cc/layers/layer_impl.h" |
| 12 #include "cc/trees/layer_tree_host_common.h" | 12 #include "cc/trees/layer_tree_host_common.h" |
| 13 | 13 |
| 14 namespace cc { | 14 namespace cc { |
| 15 | 15 |
| 16 // These classes provide means to iterate over the | 16 // These classes provide means to iterate over the |
| 17 // RenderSurfaceImpl-LayerImpl tree. | 17 // RenderSurfaceImpl-LayerImpl tree. |
| 18 | 18 |
| 19 // Example code follows, for a tree of LayerImpl/RenderSurfaceImpl objects. | 19 // Example code follows, for a tree of LayerImpl/RenderSurfaceImpl objects. |
| 20 // See below for details. | 20 // See below for details. |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 282 // Since the iterator must also stop at the layers representing | 282 // Since the iterator must also stop at the layers representing |
| 283 // the target surface, this is done by setting the current_layer_index | 283 // the target surface, this is done by setting the current_layer_index |
| 284 // to a value of | 284 // to a value of |
| 285 // LayerIteratorValue::kLayerIndexRepresentingTargetRenderSurface. | 285 // LayerIteratorValue::kLayerIndexRepresentingTargetRenderSurface. |
| 286 size_t current_layer_index_; | 286 size_t current_layer_index_; |
| 287 }; | 287 }; |
| 288 | 288 |
| 289 } // namespace cc | 289 } // namespace cc |
| 290 | 290 |
| 291 #endif // CC_LAYERS_LAYER_ITERATOR_H_ | 291 #endif // CC_LAYERS_LAYER_ITERATOR_H_ |
| OLD | NEW |