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 <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 gfx::Rect RootScrollLayerDeviceViewportBounds() const; | 242 gfx::Rect RootScrollLayerDeviceViewportBounds() const; |
243 | 243 |
244 LayerImpl* LayerById(int id) const; | 244 LayerImpl* LayerById(int id) const; |
245 | 245 |
246 // These should be called by LayerImpl's ctor/dtor. | 246 // These should be called by LayerImpl's ctor/dtor. |
247 void RegisterLayer(LayerImpl* layer); | 247 void RegisterLayer(LayerImpl* layer); |
248 void UnregisterLayer(LayerImpl* layer); | 248 void UnregisterLayer(LayerImpl* layer); |
249 | 249 |
250 size_t NumLayers(); | 250 size_t NumLayers(); |
251 | 251 |
252 AnimationRegistrar* GetAnimationRegistrar() const; | |
253 | |
254 void PushPersistedState(LayerTreeImpl* pending_tree); | 252 void PushPersistedState(LayerTreeImpl* pending_tree); |
255 | 253 |
256 void DidBecomeActive(); | 254 void DidBecomeActive(); |
257 | 255 |
258 bool ContentsTexturesPurged() const; | 256 bool ContentsTexturesPurged() const; |
259 void SetContentsTexturesPurged(); | 257 void SetContentsTexturesPurged(); |
260 void ResetContentsTexturesPurged(); | 258 void ResetContentsTexturesPurged(); |
261 | 259 |
262 // Set on the active tree when the viewport size recently changed | 260 // Set on the active tree when the viewport size recently changed |
263 // and the active tree's size is now out of date. | 261 // and the active tree's size is now out of date. |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
452 | 450 |
453 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; | 451 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; |
454 | 452 |
455 private: | 453 private: |
456 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 454 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
457 }; | 455 }; |
458 | 456 |
459 } // namespace cc | 457 } // namespace cc |
460 | 458 |
461 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 459 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
OLD | NEW |