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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 | 168 |
169 void set_ui_resource_request_queue(const UIResourceRequestQueue& queue); | 169 void set_ui_resource_request_queue(const UIResourceRequestQueue& queue); |
170 | 170 |
171 const LayerImplList& RenderSurfaceLayerList() const; | 171 const LayerImplList& RenderSurfaceLayerList() const; |
172 | 172 |
173 // These return the size of the root scrollable area and the size of | 173 // These return the size of the root scrollable area and the size of |
174 // the user-visible scrolling viewport, in CSS layout coordinates. | 174 // the user-visible scrolling viewport, in CSS layout coordinates. |
175 gfx::Size ScrollableSize() const; | 175 gfx::Size ScrollableSize() const; |
176 gfx::SizeF ScrollableViewportSize() const; | 176 gfx::SizeF ScrollableViewportSize() const; |
177 | 177 |
| 178 gfx::Rect RootScrollLayerDeviceViewportBounds() const; |
| 179 |
178 LayerImpl* LayerById(int id); | 180 LayerImpl* LayerById(int id); |
179 | 181 |
180 // These should be called by LayerImpl's ctor/dtor. | 182 // These should be called by LayerImpl's ctor/dtor. |
181 void RegisterLayer(LayerImpl* layer); | 183 void RegisterLayer(LayerImpl* layer); |
182 void UnregisterLayer(LayerImpl* layer); | 184 void UnregisterLayer(LayerImpl* layer); |
183 | 185 |
184 AnimationRegistrar* animationRegistrar() const; | 186 AnimationRegistrar* animationRegistrar() const; |
185 | 187 |
186 void PushPersistedState(LayerTreeImpl* pending_tree); | 188 void PushPersistedState(LayerTreeImpl* pending_tree); |
187 | 189 |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 | 273 |
272 UIResourceRequestQueue ui_resource_request_queue_; | 274 UIResourceRequestQueue ui_resource_request_queue_; |
273 | 275 |
274 private: | 276 private: |
275 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 277 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
276 }; | 278 }; |
277 | 279 |
278 } // namespace cc | 280 } // namespace cc |
279 | 281 |
280 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 282 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
OLD | NEW |