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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 | 138 |
139 // Updates draw properties and render surface layer list | 139 // Updates draw properties and render surface layer list |
140 void UpdateDrawProperties(UpdateDrawPropertiesReason reason); | 140 void UpdateDrawProperties(UpdateDrawPropertiesReason reason); |
141 void set_needs_update_draw_properties() { | 141 void set_needs_update_draw_properties() { |
142 needs_update_draw_properties_ = true; | 142 needs_update_draw_properties_ = true; |
143 } | 143 } |
144 bool needs_update_draw_properties() const { | 144 bool needs_update_draw_properties() const { |
145 return needs_update_draw_properties_; | 145 return needs_update_draw_properties_; |
146 } | 146 } |
147 | 147 |
| 148 void set_needs_full_tree_sync(bool needs) { needs_full_tree_sync_ = needs; } |
| 149 bool needs_full_tree_sync() const { return needs_full_tree_sync_; } |
| 150 |
148 void ClearRenderSurfaces(); | 151 void ClearRenderSurfaces(); |
149 | 152 |
150 bool AreVisibleResourcesReady() const; | 153 bool AreVisibleResourcesReady() const; |
151 | 154 |
152 const LayerList& RenderSurfaceLayerList() const; | 155 const LayerList& RenderSurfaceLayerList() const; |
153 | 156 |
154 // These return the size of the root scrollable area and the size of | 157 // These return the size of the root scrollable area and the size of |
155 // the user-visible scrolling viewport, in CSS layout coordinates. | 158 // the user-visible scrolling viewport, in CSS layout coordinates. |
156 gfx::Size ScrollableSize() const; | 159 gfx::Size ScrollableSize() const; |
157 gfx::SizeF ScrollableViewportSize() const; | 160 gfx::SizeF ScrollableViewportSize() const; |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 // Persisted state for non-impl-side-painting. | 202 // Persisted state for non-impl-side-painting. |
200 int scrolling_layer_id_from_previous_tree_; | 203 int scrolling_layer_id_from_previous_tree_; |
201 | 204 |
202 // List of visible layers for the most recently prepared frame. Used for | 205 // List of visible layers for the most recently prepared frame. Used for |
203 // rendering and input event hit testing. | 206 // rendering and input event hit testing. |
204 LayerList render_surface_layer_list_; | 207 LayerList render_surface_layer_list_; |
205 | 208 |
206 bool contents_textures_purged_; | 209 bool contents_textures_purged_; |
207 bool needs_update_draw_properties_; | 210 bool needs_update_draw_properties_; |
208 | 211 |
| 212 // In impl-side painting mode, this is true when the tree may contain |
| 213 // structural differences relative to the active tree. |
| 214 bool needs_full_tree_sync_; |
| 215 |
209 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 216 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
210 }; | 217 }; |
211 | 218 |
212 } | 219 } |
213 | 220 |
214 #endif // CC_LAYER_TREE_IMPL_H_ | 221 #endif // CC_LAYER_TREE_IMPL_H_ |
OLD | NEW |