| OLD | NEW |
| 1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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_LAYERS_LAYER_IMPL_H_ | 5 #ifndef CC_LAYERS_LAYER_IMPL_H_ |
| 6 #define CC_LAYERS_LAYER_IMPL_H_ | 6 #define CC_LAYERS_LAYER_IMPL_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 512 touch_event_handler_region_ = region; | 512 touch_event_handler_region_ = region; |
| 513 } | 513 } |
| 514 const Region& touch_event_handler_region() const { | 514 const Region& touch_event_handler_region() const { |
| 515 return touch_event_handler_region_; | 515 return touch_event_handler_region_; |
| 516 } | 516 } |
| 517 | 517 |
| 518 void SetScrollBlocksOn(ScrollBlocksOn scroll_blocks_on) { | 518 void SetScrollBlocksOn(ScrollBlocksOn scroll_blocks_on) { |
| 519 scroll_blocks_on_ = scroll_blocks_on; | 519 scroll_blocks_on_ = scroll_blocks_on; |
| 520 } | 520 } |
| 521 ScrollBlocksOn scroll_blocks_on() const { return scroll_blocks_on_; } | 521 ScrollBlocksOn scroll_blocks_on() const { return scroll_blocks_on_; } |
| 522 void SetDrawCheckerboardForMissingTiles(bool checkerboard) { | |
| 523 draw_checkerboard_for_missing_tiles_ = checkerboard; | |
| 524 } | |
| 525 bool draw_checkerboard_for_missing_tiles() const { | |
| 526 return draw_checkerboard_for_missing_tiles_; | |
| 527 } | |
| 528 | 522 |
| 529 InputHandler::ScrollStatus TryScroll( | 523 InputHandler::ScrollStatus TryScroll( |
| 530 const gfx::PointF& screen_space_point, | 524 const gfx::PointF& screen_space_point, |
| 531 InputHandler::ScrollInputType type, | 525 InputHandler::ScrollInputType type, |
| 532 ScrollBlocksOn effective_block_mode) const; | 526 ScrollBlocksOn effective_block_mode) const; |
| 533 | 527 |
| 534 void SetDoubleSided(bool double_sided); | 528 void SetDoubleSided(bool double_sided); |
| 535 bool double_sided() const { return double_sided_; } | 529 bool double_sided() const { return double_sided_; } |
| 536 | 530 |
| 537 void SetTransform(const gfx::Transform& transform); | 531 void SetTransform(const gfx::Transform& transform); |
| (...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 774 bool should_flatten_transform_from_property_tree_ : 1; | 768 bool should_flatten_transform_from_property_tree_ : 1; |
| 775 bool is_clipped_ : 1; | 769 bool is_clipped_ : 1; |
| 776 | 770 |
| 777 // Tracks if drawing-related properties have changed since last redraw. | 771 // Tracks if drawing-related properties have changed since last redraw. |
| 778 bool layer_property_changed_ : 1; | 772 bool layer_property_changed_ : 1; |
| 779 | 773 |
| 780 bool masks_to_bounds_ : 1; | 774 bool masks_to_bounds_ : 1; |
| 781 bool contents_opaque_ : 1; | 775 bool contents_opaque_ : 1; |
| 782 bool is_root_for_isolated_group_ : 1; | 776 bool is_root_for_isolated_group_ : 1; |
| 783 bool use_parent_backface_visibility_ : 1; | 777 bool use_parent_backface_visibility_ : 1; |
| 784 bool draw_checkerboard_for_missing_tiles_ : 1; | |
| 785 bool draws_content_ : 1; | 778 bool draws_content_ : 1; |
| 786 bool hide_layer_and_subtree_ : 1; | 779 bool hide_layer_and_subtree_ : 1; |
| 787 | 780 |
| 788 // Cache transform_'s invertibility. | 781 // Cache transform_'s invertibility. |
| 789 bool transform_is_invertible_ : 1; | 782 bool transform_is_invertible_ : 1; |
| 790 | 783 |
| 791 // Set for the layer that other layers are fixed to. | 784 // Set for the layer that other layers are fixed to. |
| 792 bool is_container_for_fixed_position_layers_ : 1; | 785 bool is_container_for_fixed_position_layers_ : 1; |
| 793 | 786 |
| 794 bool is_affected_by_page_scale_ : 1; | 787 bool is_affected_by_page_scale_ : 1; |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 870 bool visited_; | 863 bool visited_; |
| 871 bool layer_or_descendant_is_drawn_; | 864 bool layer_or_descendant_is_drawn_; |
| 872 bool sorted_for_recursion_; | 865 bool sorted_for_recursion_; |
| 873 | 866 |
| 874 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 867 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
| 875 }; | 868 }; |
| 876 | 869 |
| 877 } // namespace cc | 870 } // namespace cc |
| 878 | 871 |
| 879 #endif // CC_LAYERS_LAYER_IMPL_H_ | 872 #endif // CC_LAYERS_LAYER_IMPL_H_ |
| OLD | NEW |