| 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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 const LayerImplList& RenderSurfaceLayerList() const; | 237 const LayerImplList& RenderSurfaceLayerList() const; |
| 238 const Region& UnoccludedScreenSpaceRegion() const; | 238 const Region& UnoccludedScreenSpaceRegion() const; |
| 239 | 239 |
| 240 // These return the size of the root scrollable area and the size of | 240 // These return the size of the root scrollable area and the size of |
| 241 // the user-visible scrolling viewport, in CSS layout coordinates. | 241 // the user-visible scrolling viewport, in CSS layout coordinates. |
| 242 gfx::Size ScrollableSize() const; | 242 gfx::Size ScrollableSize() const; |
| 243 gfx::SizeF ScrollableViewportSize() const; | 243 gfx::SizeF ScrollableViewportSize() const; |
| 244 | 244 |
| 245 gfx::Rect RootScrollLayerDeviceViewportBounds() const; | 245 gfx::Rect RootScrollLayerDeviceViewportBounds() const; |
| 246 | 246 |
| 247 LayerImpl* LayerById(int id); | 247 LayerImpl* LayerById(int id) const; |
| 248 | 248 |
| 249 // These should be called by LayerImpl's ctor/dtor. | 249 // These should be called by LayerImpl's ctor/dtor. |
| 250 void RegisterLayer(LayerImpl* layer); | 250 void RegisterLayer(LayerImpl* layer); |
| 251 void UnregisterLayer(LayerImpl* layer); | 251 void UnregisterLayer(LayerImpl* layer); |
| 252 | 252 |
| 253 size_t NumLayers(); | 253 size_t NumLayers(); |
| 254 | 254 |
| 255 AnimationRegistrar* GetAnimationRegistrar() const; | 255 AnimationRegistrar* GetAnimationRegistrar() const; |
| 256 | 256 |
| 257 void PushPersistedState(LayerTreeImpl* pending_tree); | 257 void PushPersistedState(LayerTreeImpl* pending_tree); |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 429 | 429 |
| 430 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; | 430 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; |
| 431 | 431 |
| 432 private: | 432 private: |
| 433 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 433 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
| 434 }; | 434 }; |
| 435 | 435 |
| 436 } // namespace cc | 436 } // namespace cc |
| 437 | 437 |
| 438 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 438 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
| OLD | NEW |