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