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 <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 } | 314 } |
315 | 315 |
316 void SetMasksToBounds(bool masks_to_bounds); | 316 void SetMasksToBounds(bool masks_to_bounds); |
317 bool masks_to_bounds() const { return masks_to_bounds_; } | 317 bool masks_to_bounds() const { return masks_to_bounds_; } |
318 | 318 |
319 void SetContentsOpaque(bool opaque); | 319 void SetContentsOpaque(bool opaque); |
320 bool contents_opaque() const { return contents_opaque_; } | 320 bool contents_opaque() const { return contents_opaque_; } |
321 | 321 |
322 void SetOpacity(float opacity); | 322 void SetOpacity(float opacity); |
323 float opacity() const { return opacity_; } | 323 float opacity() const { return opacity_; } |
324 float EffectiveOpacity() const; | |
325 bool OpacityIsAnimating() const; | 324 bool OpacityIsAnimating() const; |
326 bool HasPotentiallyRunningOpacityAnimation() const; | 325 bool HasPotentiallyRunningOpacityAnimation() const; |
327 bool OpacityIsAnimatingOnImplOnly() const; | 326 bool OpacityIsAnimatingOnImplOnly() const; |
328 | 327 |
329 void SetElementId(uint64_t element_id); | 328 void SetElementId(uint64_t element_id); |
330 uint64_t element_id() const { return element_id_; } | 329 uint64_t element_id() const { return element_id_; } |
331 | 330 |
332 void SetMutableProperties(uint32_t properties); | 331 void SetMutableProperties(uint32_t properties); |
333 uint32_t mutable_properties() const { return mutable_properties_; } | 332 uint32_t mutable_properties() const { return mutable_properties_; } |
334 | 333 |
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
679 | 678 |
680 void set_sorted_for_recursion(bool sorted_for_recursion) { | 679 void set_sorted_for_recursion(bool sorted_for_recursion) { |
681 sorted_for_recursion_ = sorted_for_recursion; | 680 sorted_for_recursion_ = sorted_for_recursion; |
682 } | 681 } |
683 bool sorted_for_recursion() { return sorted_for_recursion_; } | 682 bool sorted_for_recursion() { return sorted_for_recursion_; } |
684 | 683 |
685 int num_copy_requests_in_target_subtree(); | 684 int num_copy_requests_in_target_subtree(); |
686 | 685 |
687 void UpdatePropertyTreeForScrollingAndAnimationIfNeeded(); | 686 void UpdatePropertyTreeForScrollingAndAnimationIfNeeded(); |
688 | 687 |
689 bool IsHidden() const; | 688 void set_is_hidden_from_property_trees(bool is_hidden) { |
| 689 if (is_hidden == is_hidden_from_property_trees_) |
| 690 return; |
| 691 is_hidden_from_property_trees_ = is_hidden; |
| 692 SetNeedsPushProperties(); |
| 693 } |
| 694 bool LayerIsHidden() const; |
690 | 695 |
691 float GetIdealContentsScale() const; | 696 float GetIdealContentsScale() const; |
692 | 697 |
693 bool was_ever_ready_since_last_transform_animation() const { | 698 bool was_ever_ready_since_last_transform_animation() const { |
694 return was_ever_ready_since_last_transform_animation_; | 699 return was_ever_ready_since_last_transform_animation_; |
695 } | 700 } |
696 | 701 |
697 void set_was_ever_ready_since_last_transform_animation(bool was_ready) { | 702 void set_was_ever_ready_since_last_transform_animation(bool was_ready) { |
698 was_ever_ready_since_last_transform_animation_ = was_ready; | 703 was_ever_ready_since_last_transform_animation_ = was_ready; |
699 } | 704 } |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
883 | 888 |
884 bool force_render_surface_; | 889 bool force_render_surface_; |
885 | 890 |
886 std::vector<FrameTimingRequest> frame_timing_requests_; | 891 std::vector<FrameTimingRequest> frame_timing_requests_; |
887 bool frame_timing_requests_dirty_; | 892 bool frame_timing_requests_dirty_; |
888 bool visited_; | 893 bool visited_; |
889 bool layer_or_descendant_is_drawn_; | 894 bool layer_or_descendant_is_drawn_; |
890 // If true, the layer or one of its descendants has a wheel or touch handler. | 895 // If true, the layer or one of its descendants has a wheel or touch handler. |
891 bool layer_or_descendant_has_input_handler_; | 896 bool layer_or_descendant_has_input_handler_; |
892 bool sorted_for_recursion_; | 897 bool sorted_for_recursion_; |
| 898 bool is_hidden_from_property_trees_; |
893 | 899 |
894 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 900 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
895 }; | 901 }; |
896 | 902 |
897 } // namespace cc | 903 } // namespace cc |
898 | 904 |
899 #endif // CC_LAYERS_LAYER_IMPL_H_ | 905 #endif // CC_LAYERS_LAYER_IMPL_H_ |
OLD | NEW |