| 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 <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "cc/layers/layer.h" | 9 #include "cc/layers/layer.h" |
| 10 #include "cc/layers/layer_impl.h" | 10 #include "cc/layers/layer_impl.h" |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 it->target_render_surface_layer() != layer; | 167 it->target_render_surface_layer() != layer; |
| 168 ++it->target_render_surface_layer_index_) { | 168 ++it->target_render_surface_layer_index_) { |
| 169 } | 169 } |
| 170 it->current_layer_index_ = it->target_render_surface_children().size() - 1; | 170 it->current_layer_index_ = it->target_render_surface_children().size() - 1; |
| 171 | 171 |
| 172 it->target_render_surface()->target_render_surface_layer_index_history_ = | 172 it->target_render_surface()->target_render_surface_layer_index_history_ = |
| 173 previous_target_render_surface_layer; | 173 previous_target_render_surface_layer; |
| 174 } | 174 } |
| 175 } | 175 } |
| 176 | 176 |
| 177 typedef std::vector<scoped_refptr<Layer> > LayerList; | |
| 178 typedef std::vector<LayerImpl*> LayerImplList; | |
| 179 | |
| 180 // Declare each of the above functions for Layer and LayerImpl classes | 177 // Declare each of the above functions for Layer and LayerImpl classes |
| 181 // so that they are linked. | 178 // so that they are linked. |
| 182 template CC_EXPORT void LayerIteratorActions::BackToFront::Begin( | 179 template CC_EXPORT void LayerIteratorActions::BackToFront::Begin( |
| 183 LayerIterator<Layer, LayerList, RenderSurface, BackToFront>* it); | 180 LayerIterator<Layer, LayerList, RenderSurface, BackToFront>* it); |
| 184 template CC_EXPORT void LayerIteratorActions::BackToFront::End( | 181 template CC_EXPORT void LayerIteratorActions::BackToFront::End( |
| 185 LayerIterator<Layer, LayerList, RenderSurface, BackToFront>* it); | 182 LayerIterator<Layer, LayerList, RenderSurface, BackToFront>* it); |
| 186 template CC_EXPORT void LayerIteratorActions::BackToFront::Next( | 183 template CC_EXPORT void LayerIteratorActions::BackToFront::Next( |
| 187 LayerIterator<Layer, LayerList, RenderSurface, BackToFront>* it); | 184 LayerIterator<Layer, LayerList, RenderSurface, BackToFront>* it); |
| 188 | 185 |
| 189 template CC_EXPORT void LayerIteratorActions::BackToFront::Begin( | 186 template CC_EXPORT void LayerIteratorActions::BackToFront::Begin( |
| (...skipping 22 matching lines...) Expand all Loading... |
| 212 LayerIterator<LayerImpl, LayerImplList, RenderSurfaceImpl, FrontToBack>* | 209 LayerIterator<LayerImpl, LayerImplList, RenderSurfaceImpl, FrontToBack>* |
| 213 it); | 210 it); |
| 214 template CC_EXPORT void LayerIteratorActions::FrontToBack::Begin( | 211 template CC_EXPORT void LayerIteratorActions::FrontToBack::Begin( |
| 215 LayerIterator<LayerImpl, LayerImplList, RenderSurfaceImpl, FrontToBack>* | 212 LayerIterator<LayerImpl, LayerImplList, RenderSurfaceImpl, FrontToBack>* |
| 216 it); | 213 it); |
| 217 template CC_EXPORT void LayerIteratorActions::FrontToBack::GoToHighestInSubtree( | 214 template CC_EXPORT void LayerIteratorActions::FrontToBack::GoToHighestInSubtree( |
| 218 LayerIterator<LayerImpl, LayerImplList, RenderSurfaceImpl, FrontToBack>* | 215 LayerIterator<LayerImpl, LayerImplList, RenderSurfaceImpl, FrontToBack>* |
| 219 it); | 216 it); |
| 220 | 217 |
| 221 } // namespace cc | 218 } // namespace cc |
| OLD | NEW |