| 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 <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 has_ever_been_drawn_ = has_drawn; | 202 has_ever_been_drawn_ = has_drawn; |
| 203 } | 203 } |
| 204 bool has_ever_been_drawn() const { return has_ever_been_drawn_; } | 204 bool has_ever_been_drawn() const { return has_ever_been_drawn_; } |
| 205 | 205 |
| 206 void set_ui_resource_request_queue(const UIResourceRequestQueue& queue); | 206 void set_ui_resource_request_queue(const UIResourceRequestQueue& queue); |
| 207 | 207 |
| 208 const LayerImplList& RenderSurfaceLayerList() const; | 208 const LayerImplList& RenderSurfaceLayerList() const; |
| 209 | 209 |
| 210 // These return the size of the root scrollable area and the size of | 210 // These return the size of the root scrollable area and the size of |
| 211 // the user-visible scrolling viewport, in CSS layout coordinates. | 211 // the user-visible scrolling viewport, in CSS layout coordinates. |
| 212 gfx::Size ScrollableSize() const; | 212 gfx::SizeF ScrollableSize() const; |
| 213 gfx::SizeF ScrollableViewportSize() const; | 213 gfx::SizeF ScrollableViewportSize() const; |
| 214 | 214 |
| 215 gfx::Rect RootScrollLayerDeviceViewportBounds() const; | 215 gfx::Rect RootScrollLayerDeviceViewportBounds() const; |
| 216 | 216 |
| 217 LayerImpl* LayerById(int id); | 217 LayerImpl* LayerById(int id); |
| 218 | 218 |
| 219 // These should be called by LayerImpl's ctor/dtor. | 219 // These should be called by LayerImpl's ctor/dtor. |
| 220 void RegisterLayer(LayerImpl* layer); | 220 void RegisterLayer(LayerImpl* layer); |
| 221 void UnregisterLayer(LayerImpl* layer); | 221 void UnregisterLayer(LayerImpl* layer); |
| 222 | 222 |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 402 | 402 |
| 403 scoped_ptr<PageScaleAnimation> page_scale_animation_; | 403 scoped_ptr<PageScaleAnimation> page_scale_animation_; |
| 404 | 404 |
| 405 private: | 405 private: |
| 406 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 406 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
| 407 }; | 407 }; |
| 408 | 408 |
| 409 } // namespace cc | 409 } // namespace cc |
| 410 | 410 |
| 411 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 411 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
| OLD | NEW |