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 "cc/layer_impl.h" | 9 #include "cc/layer_impl.h" |
10 | 10 |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 bool needs_update_draw_properties() const { | 127 bool needs_update_draw_properties() const { |
128 return needs_update_draw_properties_; | 128 return needs_update_draw_properties_; |
129 } | 129 } |
130 | 130 |
131 void ClearRenderSurfaces(); | 131 void ClearRenderSurfaces(); |
132 | 132 |
133 bool AreVisibleResourcesReady() const; | 133 bool AreVisibleResourcesReady() const; |
134 | 134 |
135 const LayerList& RenderSurfaceLayerList() const; | 135 const LayerList& RenderSurfaceLayerList() const; |
136 | 136 |
| 137 // These return the size of the root scrollable area and the size of |
| 138 // the user-visible scrolling viewport, in CSS layout coordinates. |
137 gfx::Size ScrollableSize() const; | 139 gfx::Size ScrollableSize() const; |
| 140 gfx::SizeF ScrollableViewportSize() const; |
138 | 141 |
139 LayerImpl* LayerById(int id); | 142 LayerImpl* LayerById(int id); |
140 | 143 |
141 // These should be called by LayerImpl's ctor/dtor. | 144 // These should be called by LayerImpl's ctor/dtor. |
142 void RegisterLayer(LayerImpl* layer); | 145 void RegisterLayer(LayerImpl* layer); |
143 void UnregisterLayer(LayerImpl* layer); | 146 void UnregisterLayer(LayerImpl* layer); |
144 | 147 |
145 AnimationRegistrar* animationRegistrar() const; | 148 AnimationRegistrar* animationRegistrar() const; |
146 | 149 |
147 void PushPersistedState(LayerTreeImpl* pendingTree); | 150 void PushPersistedState(LayerTreeImpl* pendingTree); |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 | 182 |
180 bool contents_textures_purged_; | 183 bool contents_textures_purged_; |
181 bool needs_update_draw_properties_; | 184 bool needs_update_draw_properties_; |
182 | 185 |
183 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 186 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
184 }; | 187 }; |
185 | 188 |
186 } | 189 } |
187 | 190 |
188 #endif // CC_LAYER_TREE_IMPL_H_ | 191 #endif // CC_LAYER_TREE_IMPL_H_ |
OLD | NEW |