| 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 #include "cc/layers/layer_iterator.h" | 5 #include "cc/layers/layer_iterator.h" |
| 6 | 6 |
| 7 #include "cc/layers/layer.h" | 7 #include "cc/layers/layer.h" |
| 8 #include "cc/layers/layer_impl.h" | 8 #include "cc/layers/layer_impl.h" |
| 9 #include "cc/layers/render_surface.h" | 9 #include "cc/layers/render_surface.h" |
| 10 #include "cc/layers/render_surface_impl.h" | 10 #include "cc/layers/render_surface_impl.h" |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 | 37 |
| 38 template <typename LayerType, | 38 template <typename LayerType, |
| 39 typename LayerList, | 39 typename LayerList, |
| 40 typename RenderSurfaceType, | 40 typename RenderSurfaceType, |
| 41 typename ActionType> | 41 typename ActionType> |
| 42 void LayerIteratorActions::BackToFront::Next( | 42 void LayerIteratorActions::BackToFront::Next( |
| 43 LayerIterator<LayerType, LayerList, RenderSurfaceType, ActionType>* it) { | 43 LayerIterator<LayerType, LayerList, RenderSurfaceType, ActionType>* it) { |
| 44 // If the current layer has a RS, move to its layer list. Otherwise, | 44 // If the current layer has a RS, move to its layer list. Otherwise, |
| 45 // visit the next layer in the current RS layer list. | 45 // visit the next layer in the current RS layer list. |
| 46 if (it->current_layer_represents_contributing_render_surface()) { | 46 if (it->current_layer_represents_contributing_render_surface()) { |
| 47 // Save our position in the childLayer list for the RenderSurface, | 47 // Save our position in the child_layers list for the RenderSurface, |
| 48 // then jump to the next RenderSurface. Save where we | 48 // then jump to the next RenderSurface. Save where we |
| 49 // came from in the next RenderSurface so we can get back to it. | 49 // came from in the next RenderSurface so we can get back to it. |
| 50 it->target_render_surface()->current_layer_index_history_ = | 50 it->target_render_surface()->current_layer_index_history_ = |
| 51 it->current_layer_index_; | 51 it->current_layer_index_; |
| 52 int previous_target_render_surface_layer = | 52 int previous_target_render_surface_layer = |
| 53 it->target_render_surface_layer_index_; | 53 it->target_render_surface_layer_index_; |
| 54 | 54 |
| 55 it->target_render_surface_layer_index_ = | 55 it->target_render_surface_layer_index_ = |
| 56 ++highest_target_render_surface_layer_; | 56 ++highest_target_render_surface_layer_; |
| 57 it->current_layer_index_ = | 57 it->current_layer_index_ = |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 LayerIterator<LayerImpl, LayerImplList, RenderSurfaceImpl, FrontToBack>* | 210 LayerIterator<LayerImpl, LayerImplList, RenderSurfaceImpl, FrontToBack>* |
| 211 it); | 211 it); |
| 212 template CC_EXPORT void LayerIteratorActions::FrontToBack::Begin( | 212 template CC_EXPORT void LayerIteratorActions::FrontToBack::Begin( |
| 213 LayerIterator<LayerImpl, LayerImplList, RenderSurfaceImpl, FrontToBack>* | 213 LayerIterator<LayerImpl, LayerImplList, RenderSurfaceImpl, FrontToBack>* |
| 214 it); | 214 it); |
| 215 template CC_EXPORT void LayerIteratorActions::FrontToBack::GoToHighestInSubtree( | 215 template CC_EXPORT void LayerIteratorActions::FrontToBack::GoToHighestInSubtree( |
| 216 LayerIterator<LayerImpl, LayerImplList, RenderSurfaceImpl, FrontToBack>* | 216 LayerIterator<LayerImpl, LayerImplList, RenderSurfaceImpl, FrontToBack>* |
| 217 it); | 217 it); |
| 218 | 218 |
| 219 } // namespace cc | 219 } // namespace cc |
| OLD | NEW |