| OLD | NEW |
| 1 // Copyright 2010 The Chromium Authors. All rights reserved. | 1 // Copyright 2010 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_H_ | 5 #ifndef CC_LAYERS_LAYER_H_ |
| 6 #define CC_LAYERS_LAYER_H_ | 6 #define CC_LAYERS_LAYER_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 555 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 566 // updated via SetLayerTreeHost() if a layer moves between trees. | 566 // updated via SetLayerTreeHost() if a layer moves between trees. |
| 567 LayerTreeHost* layer_tree_host_; | 567 LayerTreeHost* layer_tree_host_; |
| 568 | 568 |
| 569 scoped_refptr<LayerAnimationController> layer_animation_controller_; | 569 scoped_refptr<LayerAnimationController> layer_animation_controller_; |
| 570 | 570 |
| 571 // Layer properties. | 571 // Layer properties. |
| 572 gfx::Size bounds_; | 572 gfx::Size bounds_; |
| 573 | 573 |
| 574 gfx::Vector2d scroll_offset_; | 574 gfx::Vector2d scroll_offset_; |
| 575 gfx::Vector2d max_scroll_offset_; | 575 gfx::Vector2d max_scroll_offset_; |
| 576 bool scrollable_; | 576 bool scrollable_ : 1; |
| 577 bool should_scroll_on_main_thread_; | 577 bool should_scroll_on_main_thread_ : 1; |
| 578 bool have_wheel_event_handlers_; | 578 bool have_wheel_event_handlers_ : 1; |
| 579 bool user_scrollable_horizontal_; | 579 bool user_scrollable_horizontal_ : 1; |
| 580 bool user_scrollable_vertical_; | 580 bool user_scrollable_vertical_ : 1; |
| 581 bool is_root_for_isolated_group_ : 1; |
| 582 bool is_container_for_fixed_position_layers_ : 1; |
| 583 bool is_drawable_ : 1; |
| 584 bool hide_layer_and_subtree_ : 1; |
| 585 bool masks_to_bounds_ : 1; |
| 586 bool contents_opaque_ : 1; |
| 587 bool double_sided_ : 1; |
| 588 bool preserves_3d_ : 1; |
| 589 bool use_parent_backface_visibility_ : 1; |
| 590 bool draw_checkerboard_for_missing_tiles_ : 1; |
| 591 bool force_render_surface_ : 1; |
| 581 Region non_fast_scrollable_region_; | 592 Region non_fast_scrollable_region_; |
| 582 Region touch_event_handler_region_; | 593 Region touch_event_handler_region_; |
| 583 gfx::PointF position_; | 594 gfx::PointF position_; |
| 584 gfx::PointF anchor_point_; | 595 gfx::PointF anchor_point_; |
| 585 SkColor background_color_; | 596 SkColor background_color_; |
| 586 CompositingReasons compositing_reasons_; | 597 CompositingReasons compositing_reasons_; |
| 587 float opacity_; | 598 float opacity_; |
| 588 SkXfermode::Mode blend_mode_; | 599 SkXfermode::Mode blend_mode_; |
| 589 bool is_root_for_isolated_group_; | |
| 590 FilterOperations filters_; | 600 FilterOperations filters_; |
| 591 FilterOperations background_filters_; | 601 FilterOperations background_filters_; |
| 592 float anchor_point_z_; | 602 float anchor_point_z_; |
| 593 bool is_container_for_fixed_position_layers_; | |
| 594 LayerPositionConstraint position_constraint_; | 603 LayerPositionConstraint position_constraint_; |
| 595 bool is_drawable_; | |
| 596 bool hide_layer_and_subtree_; | |
| 597 bool masks_to_bounds_; | |
| 598 bool contents_opaque_; | |
| 599 bool double_sided_; | |
| 600 bool preserves_3d_; | |
| 601 bool use_parent_backface_visibility_; | |
| 602 bool draw_checkerboard_for_missing_tiles_; | |
| 603 bool force_render_surface_; | |
| 604 Layer* scroll_parent_; | 604 Layer* scroll_parent_; |
| 605 scoped_ptr<std::set<Layer*> > scroll_children_; | 605 scoped_ptr<std::set<Layer*> > scroll_children_; |
| 606 | 606 |
| 607 Layer* clip_parent_; | 607 Layer* clip_parent_; |
| 608 scoped_ptr<std::set<Layer*> > clip_children_; | 608 scoped_ptr<std::set<Layer*> > clip_children_; |
| 609 | 609 |
| 610 gfx::Transform transform_; | 610 gfx::Transform transform_; |
| 611 gfx::Transform sublayer_transform_; | 611 gfx::Transform sublayer_transform_; |
| 612 | 612 |
| 613 // Replica layer used for reflections. | 613 // Replica layer used for reflections. |
| (...skipping 11 matching lines...) Expand all Loading... |
| 625 DrawProperties<Layer> draw_properties_; | 625 DrawProperties<Layer> draw_properties_; |
| 626 | 626 |
| 627 PaintProperties paint_properties_; | 627 PaintProperties paint_properties_; |
| 628 | 628 |
| 629 DISALLOW_COPY_AND_ASSIGN(Layer); | 629 DISALLOW_COPY_AND_ASSIGN(Layer); |
| 630 }; | 630 }; |
| 631 | 631 |
| 632 } // namespace cc | 632 } // namespace cc |
| 633 | 633 |
| 634 #endif // CC_LAYERS_LAYER_H_ | 634 #endif // CC_LAYERS_LAYER_H_ |
| OLD | NEW |