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