| 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_LAYER_TREE_IMPL_H_ | 5 #ifndef CC_LAYER_TREE_IMPL_H_ |
| 6 #define CC_LAYER_TREE_IMPL_H_ | 6 #define CC_LAYER_TREE_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/hash_tables.h" | 8 #include "base/hash_tables.h" |
| 9 #include "cc/layer_impl.h" | 9 #include "cc/layer_impl.h" |
| 10 | 10 |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 | 116 |
| 117 // Updates draw properties and render surface layer list | 117 // Updates draw properties and render surface layer list |
| 118 void UpdateDrawProperties(); | 118 void UpdateDrawProperties(); |
| 119 | 119 |
| 120 void ClearRenderSurfaces(); | 120 void ClearRenderSurfaces(); |
| 121 | 121 |
| 122 bool AreVisibleResourcesReady() const; | 122 bool AreVisibleResourcesReady() const; |
| 123 | 123 |
| 124 const LayerList& RenderSurfaceLayerList() const; | 124 const LayerList& RenderSurfaceLayerList() const; |
| 125 | 125 |
| 126 gfx::Size ContentSize() const; | 126 gfx::Size ScrollableSize() const; |
| 127 | 127 |
| 128 LayerImpl* LayerById(int id); | 128 LayerImpl* LayerById(int id); |
| 129 | 129 |
| 130 // These should be called by LayerImpl's ctor/dtor. | 130 // These should be called by LayerImpl's ctor/dtor. |
| 131 void RegisterLayer(LayerImpl* layer); | 131 void RegisterLayer(LayerImpl* layer); |
| 132 void UnregisterLayer(LayerImpl* layer); | 132 void UnregisterLayer(LayerImpl* layer); |
| 133 | 133 |
| 134 AnimationRegistrar* animationRegistrar() const; | 134 AnimationRegistrar* animationRegistrar() const; |
| 135 | 135 |
| 136 void PushPersistedState(LayerTreeImpl* pendingTree); | 136 void PushPersistedState(LayerTreeImpl* pendingTree); |
| (...skipping 21 matching lines...) Expand all Loading... |
| 158 // List of visible layers for the most recently prepared frame. Used for | 158 // List of visible layers for the most recently prepared frame. Used for |
| 159 // rendering and input event hit testing. | 159 // rendering and input event hit testing. |
| 160 LayerList render_surface_layer_list_; | 160 LayerList render_surface_layer_list_; |
| 161 | 161 |
| 162 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 162 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
| 163 }; | 163 }; |
| 164 | 164 |
| 165 } | 165 } |
| 166 | 166 |
| 167 #endif // CC_LAYER_TREE_IMPL_H_ | 167 #endif // CC_LAYER_TREE_IMPL_H_ |
| OLD | NEW |