| 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 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 279 bool UpdateDrawProperties(bool update_lcd_text); | 279 bool UpdateDrawProperties(bool update_lcd_text); |
| 280 void BuildPropertyTreesForTesting(); | 280 void BuildPropertyTreesForTesting(); |
| 281 | 281 |
| 282 void set_needs_update_draw_properties() { | 282 void set_needs_update_draw_properties() { |
| 283 needs_update_draw_properties_ = true; | 283 needs_update_draw_properties_ = true; |
| 284 } | 284 } |
| 285 bool needs_update_draw_properties() const { | 285 bool needs_update_draw_properties() const { |
| 286 return needs_update_draw_properties_; | 286 return needs_update_draw_properties_; |
| 287 } | 287 } |
| 288 | 288 |
| 289 bool is_in_resourceless_software_draw_mode() { |
| 290 return (layer_tree_host_impl_->GetDrawMode() == |
| 291 DRAW_MODE_RESOURCELESS_SOFTWARE); |
| 292 } |
| 293 |
| 289 void set_needs_full_tree_sync(bool needs) { needs_full_tree_sync_ = needs; } | 294 void set_needs_full_tree_sync(bool needs) { needs_full_tree_sync_ = needs; } |
| 290 bool needs_full_tree_sync() const { return needs_full_tree_sync_; } | 295 bool needs_full_tree_sync() const { return needs_full_tree_sync_; } |
| 291 | 296 |
| 292 void ForceRedrawNextActivation() { next_activation_forces_redraw_ = true; } | 297 void ForceRedrawNextActivation() { next_activation_forces_redraw_ = true; } |
| 293 | 298 |
| 294 void set_has_ever_been_drawn(bool has_drawn) { | 299 void set_has_ever_been_drawn(bool has_drawn) { |
| 295 has_ever_been_drawn_ = has_drawn; | 300 has_ever_been_drawn_ = has_drawn; |
| 296 } | 301 } |
| 297 bool has_ever_been_drawn() const { return has_ever_been_drawn_; } | 302 bool has_ever_been_drawn() const { return has_ever_been_drawn_; } |
| 298 | 303 |
| (...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 588 | 593 |
| 589 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; | 594 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; |
| 590 | 595 |
| 591 private: | 596 private: |
| 592 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 597 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
| 593 }; | 598 }; |
| 594 | 599 |
| 595 } // namespace cc | 600 } // namespace cc |
| 596 | 601 |
| 597 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 602 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
| OLD | NEW |