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