| 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 <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 } | 181 } |
| 182 bool needs_update_draw_properties() const { | 182 bool needs_update_draw_properties() const { |
| 183 return needs_update_draw_properties_; | 183 return needs_update_draw_properties_; |
| 184 } | 184 } |
| 185 | 185 |
| 186 void set_needs_full_tree_sync(bool needs) { needs_full_tree_sync_ = needs; } | 186 void set_needs_full_tree_sync(bool needs) { needs_full_tree_sync_ = needs; } |
| 187 bool needs_full_tree_sync() const { return needs_full_tree_sync_; } | 187 bool needs_full_tree_sync() const { return needs_full_tree_sync_; } |
| 188 | 188 |
| 189 void ForceRedrawNextActivation() { next_activation_forces_redraw_ = true; } | 189 void ForceRedrawNextActivation() { next_activation_forces_redraw_ = true; } |
| 190 | 190 |
| 191 void set_has_ever_been_drawn(bool has_drawn) { |
| 192 has_ever_been_drawn_ = has_drawn; |
| 193 } |
| 194 bool has_ever_been_drawn() const { return has_ever_been_drawn_; } |
| 195 |
| 191 void set_ui_resource_request_queue(const UIResourceRequestQueue& queue); | 196 void set_ui_resource_request_queue(const UIResourceRequestQueue& queue); |
| 192 | 197 |
| 193 const LayerImplList& RenderSurfaceLayerList() const; | 198 const LayerImplList& RenderSurfaceLayerList() const; |
| 194 | 199 |
| 195 // These return the size of the root scrollable area and the size of | 200 // These return the size of the root scrollable area and the size of |
| 196 // the user-visible scrolling viewport, in CSS layout coordinates. | 201 // the user-visible scrolling viewport, in CSS layout coordinates. |
| 197 gfx::Size ScrollableSize() const; | 202 gfx::Size ScrollableSize() const; |
| 198 gfx::SizeF ScrollableViewportSize() const; | 203 gfx::SizeF ScrollableViewportSize() const; |
| 199 | 204 |
| 200 gfx::Rect RootScrollLayerDeviceViewportBounds() const; | 205 gfx::Rect RootScrollLayerDeviceViewportBounds() const; |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 323 bool requires_high_res_to_draw_; | 328 bool requires_high_res_to_draw_; |
| 324 bool viewport_size_invalid_; | 329 bool viewport_size_invalid_; |
| 325 bool needs_update_draw_properties_; | 330 bool needs_update_draw_properties_; |
| 326 | 331 |
| 327 // In impl-side painting mode, this is true when the tree may contain | 332 // In impl-side painting mode, this is true when the tree may contain |
| 328 // structural differences relative to the active tree. | 333 // structural differences relative to the active tree. |
| 329 bool needs_full_tree_sync_; | 334 bool needs_full_tree_sync_; |
| 330 | 335 |
| 331 bool next_activation_forces_redraw_; | 336 bool next_activation_forces_redraw_; |
| 332 | 337 |
| 338 bool has_ever_been_drawn_; |
| 339 |
| 333 ScopedPtrVector<SwapPromise> swap_promise_list_; | 340 ScopedPtrVector<SwapPromise> swap_promise_list_; |
| 334 | 341 |
| 335 UIResourceRequestQueue ui_resource_request_queue_; | 342 UIResourceRequestQueue ui_resource_request_queue_; |
| 336 | 343 |
| 337 int render_surface_layer_list_id_; | 344 int render_surface_layer_list_id_; |
| 338 | 345 |
| 339 private: | 346 private: |
| 340 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 347 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
| 341 }; | 348 }; |
| 342 | 349 |
| 343 } // namespace cc | 350 } // namespace cc |
| 344 | 351 |
| 345 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 352 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
| OLD | NEW |