| 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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 gfx::SizeF ScrollableViewportSize() const; | 198 gfx::SizeF ScrollableViewportSize() const; |
| 199 | 199 |
| 200 gfx::Rect RootScrollLayerDeviceViewportBounds() const; | 200 gfx::Rect RootScrollLayerDeviceViewportBounds() const; |
| 201 | 201 |
| 202 LayerImpl* LayerById(int id); | 202 LayerImpl* LayerById(int id); |
| 203 | 203 |
| 204 // These should be called by LayerImpl's ctor/dtor. | 204 // These should be called by LayerImpl's ctor/dtor. |
| 205 void RegisterLayer(LayerImpl* layer); | 205 void RegisterLayer(LayerImpl* layer); |
| 206 void UnregisterLayer(LayerImpl* layer); | 206 void UnregisterLayer(LayerImpl* layer); |
| 207 | 207 |
| 208 size_t NumLayers(); |
| 209 |
| 208 AnimationRegistrar* animationRegistrar() const; | 210 AnimationRegistrar* animationRegistrar() const; |
| 209 | 211 |
| 210 void PushPersistedState(LayerTreeImpl* pending_tree); | 212 void PushPersistedState(LayerTreeImpl* pending_tree); |
| 211 | 213 |
| 212 void DidBecomeActive(); | 214 void DidBecomeActive(); |
| 213 | 215 |
| 214 bool ContentsTexturesPurged() const; | 216 bool ContentsTexturesPurged() const; |
| 215 void SetContentsTexturesPurged(); | 217 void SetContentsTexturesPurged(); |
| 216 void ResetContentsTexturesPurged(); | 218 void ResetContentsTexturesPurged(); |
| 217 | 219 |
| (...skipping 116 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 |