| 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 564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 575 bool layer_or_descendant_has_touch_handler() { | 575 bool layer_or_descendant_has_touch_handler() { |
| 576 return layer_or_descendant_has_touch_handler_; | 576 return layer_or_descendant_has_touch_handler_; |
| 577 } | 577 } |
| 578 | 578 |
| 579 int num_copy_requests_in_target_subtree(); | 579 int num_copy_requests_in_target_subtree(); |
| 580 | 580 |
| 581 void UpdatePropertyTreeForScrollingAndAnimationIfNeeded(); | 581 void UpdatePropertyTreeForScrollingAndAnimationIfNeeded(); |
| 582 | 582 |
| 583 bool IsHidden() const; | 583 bool IsHidden() const; |
| 584 | 584 |
| 585 bool InsideReplica() const; |
| 586 |
| 585 float GetIdealContentsScale() const; | 587 float GetIdealContentsScale() const; |
| 586 | 588 |
| 587 bool was_ever_ready_since_last_transform_animation() const { | 589 bool was_ever_ready_since_last_transform_animation() const { |
| 588 return was_ever_ready_since_last_transform_animation_; | 590 return was_ever_ready_since_last_transform_animation_; |
| 589 } | 591 } |
| 590 | 592 |
| 591 void set_was_ever_ready_since_last_transform_animation(bool was_ready) { | 593 void set_was_ever_ready_since_last_transform_animation(bool was_ready) { |
| 592 was_ever_ready_since_last_transform_animation_ = was_ready; | 594 was_ever_ready_since_last_transform_animation_ = was_ready; |
| 593 } | 595 } |
| 594 | 596 |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 764 bool layer_or_descendant_is_drawn_; | 766 bool layer_or_descendant_is_drawn_; |
| 765 // If true, the layer or one of its descendants has a touch handler. | 767 // If true, the layer or one of its descendants has a touch handler. |
| 766 bool layer_or_descendant_has_touch_handler_; | 768 bool layer_or_descendant_has_touch_handler_; |
| 767 | 769 |
| 768 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 770 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
| 769 }; | 771 }; |
| 770 | 772 |
| 771 } // namespace cc | 773 } // namespace cc |
| 772 | 774 |
| 773 #endif // CC_LAYERS_LAYER_IMPL_H_ | 775 #endif // CC_LAYERS_LAYER_IMPL_H_ |
| OLD | NEW |