| 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 <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 269 bool UpdateDrawProperties(bool update_lcd_text); | 269 bool UpdateDrawProperties(bool update_lcd_text); |
| 270 void BuildPropertyTreesForTesting(); | 270 void BuildPropertyTreesForTesting(); |
| 271 | 271 |
| 272 void set_needs_update_draw_properties() { | 272 void set_needs_update_draw_properties() { |
| 273 needs_update_draw_properties_ = true; | 273 needs_update_draw_properties_ = true; |
| 274 } | 274 } |
| 275 bool needs_update_draw_properties() const { | 275 bool needs_update_draw_properties() const { |
| 276 return needs_update_draw_properties_; | 276 return needs_update_draw_properties_; |
| 277 } | 277 } |
| 278 | 278 |
| 279 bool is_in_resourceless_software_draw_mode() { |
| 280 return (layer_tree_host_impl_->GetDrawMode() == |
| 281 DRAW_MODE_RESOURCELESS_SOFTWARE); |
| 282 } |
| 283 |
| 279 void set_needs_full_tree_sync(bool needs) { needs_full_tree_sync_ = needs; } | 284 void set_needs_full_tree_sync(bool needs) { needs_full_tree_sync_ = needs; } |
| 280 bool needs_full_tree_sync() const { return needs_full_tree_sync_; } | 285 bool needs_full_tree_sync() const { return needs_full_tree_sync_; } |
| 281 | 286 |
| 282 void ForceRedrawNextActivation() { next_activation_forces_redraw_ = true; } | 287 void ForceRedrawNextActivation() { next_activation_forces_redraw_ = true; } |
| 283 | 288 |
| 284 void set_has_ever_been_drawn(bool has_drawn) { | 289 void set_has_ever_been_drawn(bool has_drawn) { |
| 285 has_ever_been_drawn_ = has_drawn; | 290 has_ever_been_drawn_ = has_drawn; |
| 286 } | 291 } |
| 287 bool has_ever_been_drawn() const { return has_ever_been_drawn_; } | 292 bool has_ever_been_drawn() const { return has_ever_been_drawn_; } |
| 288 | 293 |
| (...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 571 | 576 |
| 572 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; | 577 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; |
| 573 | 578 |
| 574 private: | 579 private: |
| 575 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 580 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
| 576 }; | 581 }; |
| 577 | 582 |
| 578 } // namespace cc | 583 } // namespace cc |
| 579 | 584 |
| 580 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 585 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
| OLD | NEW |