Chromium Code Reviews| 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_TREES_LAYER_TREE_IMPL_H_ | 5 #ifndef CC_TREES_LAYER_TREE_IMPL_H_ |
| 6 #define CC_TREES_LAYER_TREE_IMPL_H_ | 6 #define CC_TREES_LAYER_TREE_IMPL_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 269 const LayerSelectionBound& focus); | 269 const LayerSelectionBound& focus); |
| 270 | 270 |
| 271 // Compute the current selection handle location and visbility with respect to | 271 // Compute the current selection handle location and visbility with respect to |
| 272 // the viewport. | 272 // the viewport. |
| 273 void GetViewportSelection(ViewportSelectionBound* anchor, | 273 void GetViewportSelection(ViewportSelectionBound* anchor, |
| 274 ViewportSelectionBound* focus); | 274 ViewportSelectionBound* focus); |
| 275 | 275 |
| 276 void RegisterPictureLayerImpl(PictureLayerImpl* layer); | 276 void RegisterPictureLayerImpl(PictureLayerImpl* layer); |
| 277 void UnregisterPictureLayerImpl(PictureLayerImpl* layer); | 277 void UnregisterPictureLayerImpl(PictureLayerImpl* layer); |
| 278 | 278 |
| 279 size_t NumLayers(); | |
|
danakj
2014/07/10 21:27:44
can you move up below RegisterLayer/UnregisterLaye
dneto
2014/07/11 15:23:31
Acknowledged.
| |
| 280 | |
| 279 protected: | 281 protected: |
| 280 explicit LayerTreeImpl(LayerTreeHostImpl* layer_tree_host_impl); | 282 explicit LayerTreeImpl(LayerTreeHostImpl* layer_tree_host_impl); |
| 281 void ReleaseResourcesRecursive(LayerImpl* current); | 283 void ReleaseResourcesRecursive(LayerImpl* current); |
| 282 | 284 |
| 283 LayerTreeHostImpl* layer_tree_host_impl_; | 285 LayerTreeHostImpl* layer_tree_host_impl_; |
| 284 int source_frame_number_; | 286 int source_frame_number_; |
| 285 scoped_ptr<LayerImpl> root_layer_; | 287 scoped_ptr<LayerImpl> root_layer_; |
| 286 HeadsUpDisplayLayerImpl* hud_layer_; | 288 HeadsUpDisplayLayerImpl* hud_layer_; |
| 287 LayerImpl* currently_scrolling_layer_; | 289 LayerImpl* currently_scrolling_layer_; |
| 288 LayerScrollOffsetDelegate* root_layer_scroll_offset_delegate_; | 290 LayerScrollOffsetDelegate* root_layer_scroll_offset_delegate_; |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 334 | 336 |
| 335 int render_surface_layer_list_id_; | 337 int render_surface_layer_list_id_; |
| 336 | 338 |
| 337 private: | 339 private: |
| 338 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 340 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
| 339 }; | 341 }; |
| 340 | 342 |
| 341 } // namespace cc | 343 } // namespace cc |
| 342 | 344 |
| 343 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 345 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
| OLD | NEW |