| 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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 const LayerImplList& RenderSurfaceLayerList() const; | 222 const LayerImplList& RenderSurfaceLayerList() const; |
| 223 const Region& UnoccludedScreenSpaceRegion() const; | 223 const Region& UnoccludedScreenSpaceRegion() const; |
| 224 | 224 |
| 225 // These return the size of the root scrollable area and the size of | 225 // These return the size of the root scrollable area and the size of |
| 226 // the user-visible scrolling viewport, in CSS layout coordinates. | 226 // the user-visible scrolling viewport, in CSS layout coordinates. |
| 227 gfx::Size ScrollableSize() const; | 227 gfx::Size ScrollableSize() const; |
| 228 gfx::SizeF ScrollableViewportSize() const; | 228 gfx::SizeF ScrollableViewportSize() const; |
| 229 | 229 |
| 230 gfx::Rect RootScrollLayerDeviceViewportBounds() const; | 230 gfx::Rect RootScrollLayerDeviceViewportBounds() const; |
| 231 | 231 |
| 232 LayerImpl* LayerById(int id); | 232 LayerImpl* LayerById(int id) const; |
| 233 | 233 |
| 234 // These should be called by LayerImpl's ctor/dtor. | 234 // These should be called by LayerImpl's ctor/dtor. |
| 235 void RegisterLayer(LayerImpl* layer); | 235 void RegisterLayer(LayerImpl* layer); |
| 236 void UnregisterLayer(LayerImpl* layer); | 236 void UnregisterLayer(LayerImpl* layer); |
| 237 | 237 |
| 238 size_t NumLayers(); | 238 size_t NumLayers(); |
| 239 | 239 |
| 240 AnimationRegistrar* animationRegistrar() const; | 240 AnimationRegistrar* animationRegistrar() const; |
| 241 | 241 |
| 242 void PushPersistedState(LayerTreeImpl* pending_tree); | 242 void PushPersistedState(LayerTreeImpl* pending_tree); |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 416 | 416 |
| 417 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; | 417 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; |
| 418 | 418 |
| 419 private: | 419 private: |
| 420 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 420 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
| 421 }; | 421 }; |
| 422 | 422 |
| 423 } // namespace cc | 423 } // namespace cc |
| 424 | 424 |
| 425 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 425 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
| OLD | NEW |