| 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_LAYER_TREE_IMPL_H_ | 5 #ifndef CC_LAYER_TREE_IMPL_H_ |
| 6 #define CC_LAYER_TREE_IMPL_H_ | 6 #define CC_LAYER_TREE_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/hash_tables.h" | 8 #include "base/hash_tables.h" |
| 9 #include "base/values.h" | 9 #include "base/values.h" |
| 10 #include "cc/layer_impl.h" | 10 #include "cc/layer_impl.h" |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 | 156 |
| 157 void ClearRenderSurfaces(); | 157 void ClearRenderSurfaces(); |
| 158 | 158 |
| 159 bool AreVisibleResourcesReady() const; | 159 bool AreVisibleResourcesReady() const; |
| 160 | 160 |
| 161 const LayerList& RenderSurfaceLayerList() const; | 161 const LayerList& RenderSurfaceLayerList() const; |
| 162 | 162 |
| 163 // These return the size of the root scrollable area and the size of | 163 // These return the size of the root scrollable area and the size of |
| 164 // the user-visible scrolling viewport, in CSS layout coordinates. | 164 // the user-visible scrolling viewport, in CSS layout coordinates. |
| 165 gfx::Size ScrollableSize() const; | 165 gfx::Size ScrollableSize() const; |
| 166 gfx::SizeF UnscaledScrollableViewportSize() const; |
| 166 gfx::SizeF ScrollableViewportSize() const; | 167 gfx::SizeF ScrollableViewportSize() const; |
| 167 | 168 |
| 168 LayerImpl* LayerById(int id); | 169 LayerImpl* LayerById(int id); |
| 169 | 170 |
| 170 // These should be called by LayerImpl's ctor/dtor. | 171 // These should be called by LayerImpl's ctor/dtor. |
| 171 void RegisterLayer(LayerImpl* layer); | 172 void RegisterLayer(LayerImpl* layer); |
| 172 void UnregisterLayer(LayerImpl* layer); | 173 void UnregisterLayer(LayerImpl* layer); |
| 173 | 174 |
| 174 AnimationRegistrar* animationRegistrar() const; | 175 AnimationRegistrar* animationRegistrar() const; |
| 175 | 176 |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 // In impl-side painting mode, this is true when the tree may contain | 226 // In impl-side painting mode, this is true when the tree may contain |
| 226 // structural differences relative to the active tree. | 227 // structural differences relative to the active tree. |
| 227 bool needs_full_tree_sync_; | 228 bool needs_full_tree_sync_; |
| 228 | 229 |
| 229 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 230 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
| 230 }; | 231 }; |
| 231 | 232 |
| 232 } | 233 } |
| 233 | 234 |
| 234 #endif // CC_LAYER_TREE_IMPL_H_ | 235 #endif // CC_LAYER_TREE_IMPL_H_ |
| OLD | NEW |