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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 bool IsContainerForFixedPositionLayers() const; | 173 bool IsContainerForFixedPositionLayers() const; |
174 | 174 |
175 void SetPositionConstraint(const LayerPositionConstraint& constraint); | 175 void SetPositionConstraint(const LayerPositionConstraint& constraint); |
176 const LayerPositionConstraint& position_constraint() const { | 176 const LayerPositionConstraint& position_constraint() const { |
177 return position_constraint_; | 177 return position_constraint_; |
178 } | 178 } |
179 | 179 |
180 void SetTransform(const gfx::Transform& transform); | 180 void SetTransform(const gfx::Transform& transform); |
181 const gfx::Transform& transform() const { return transform_; } | 181 const gfx::Transform& transform() const { return transform_; } |
182 bool TransformIsAnimating() const; | 182 bool TransformIsAnimating() const; |
| 183 bool transform_is_invertible() const { return transform_is_invertible_; } |
183 | 184 |
184 void SetScrollParent(Layer* parent); | 185 void SetScrollParent(Layer* parent); |
185 | 186 |
186 Layer* scroll_parent() { return scroll_parent_; } | 187 Layer* scroll_parent() { return scroll_parent_; } |
187 const Layer* scroll_parent() const { return scroll_parent_; } | 188 const Layer* scroll_parent() const { return scroll_parent_; } |
188 | 189 |
189 void AddScrollChild(Layer* child); | 190 void AddScrollChild(Layer* child); |
190 void RemoveScrollChild(Layer* child); | 191 void RemoveScrollChild(Layer* child); |
191 | 192 |
192 std::set<Layer*>* scroll_children() { return scroll_children_.get(); } | 193 std::set<Layer*>* scroll_children() { return scroll_children_.get(); } |
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
579 bool is_drawable_ : 1; | 580 bool is_drawable_ : 1; |
580 bool hide_layer_and_subtree_ : 1; | 581 bool hide_layer_and_subtree_ : 1; |
581 bool masks_to_bounds_ : 1; | 582 bool masks_to_bounds_ : 1; |
582 bool contents_opaque_ : 1; | 583 bool contents_opaque_ : 1; |
583 bool double_sided_ : 1; | 584 bool double_sided_ : 1; |
584 bool should_flatten_transform_ : 1; | 585 bool should_flatten_transform_ : 1; |
585 bool use_parent_backface_visibility_ : 1; | 586 bool use_parent_backface_visibility_ : 1; |
586 bool draw_checkerboard_for_missing_tiles_ : 1; | 587 bool draw_checkerboard_for_missing_tiles_ : 1; |
587 bool force_render_surface_ : 1; | 588 bool force_render_surface_ : 1; |
588 bool is_3d_sorted_ : 1; | 589 bool is_3d_sorted_ : 1; |
| 590 bool transform_is_invertible_ : 1; |
589 Region non_fast_scrollable_region_; | 591 Region non_fast_scrollable_region_; |
590 Region touch_event_handler_region_; | 592 Region touch_event_handler_region_; |
591 gfx::PointF position_; | 593 gfx::PointF position_; |
592 gfx::PointF anchor_point_; | 594 gfx::PointF anchor_point_; |
593 SkColor background_color_; | 595 SkColor background_color_; |
594 float opacity_; | 596 float opacity_; |
595 SkXfermode::Mode blend_mode_; | 597 SkXfermode::Mode blend_mode_; |
596 FilterOperations filters_; | 598 FilterOperations filters_; |
597 FilterOperations background_filters_; | 599 FilterOperations background_filters_; |
598 float anchor_point_z_; | 600 float anchor_point_z_; |
(...skipping 21 matching lines...) Expand all Loading... |
620 DrawProperties<Layer> draw_properties_; | 622 DrawProperties<Layer> draw_properties_; |
621 | 623 |
622 PaintProperties paint_properties_; | 624 PaintProperties paint_properties_; |
623 | 625 |
624 DISALLOW_COPY_AND_ASSIGN(Layer); | 626 DISALLOW_COPY_AND_ASSIGN(Layer); |
625 }; | 627 }; |
626 | 628 |
627 } // namespace cc | 629 } // namespace cc |
628 | 630 |
629 #endif // CC_LAYERS_LAYER_H_ | 631 #endif // CC_LAYERS_LAYER_H_ |
OLD | NEW |