| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 498 void SetMutableProperties(uint32_t properties); | 498 void SetMutableProperties(uint32_t properties); |
| 499 uint32_t mutable_properties() const { return mutable_properties_; } | 499 uint32_t mutable_properties() const { return mutable_properties_; } |
| 500 | 500 |
| 501 // Interactions with attached animations. | 501 // Interactions with attached animations. |
| 502 gfx::ScrollOffset ScrollOffsetForAnimation() const; | 502 gfx::ScrollOffset ScrollOffsetForAnimation() const; |
| 503 void OnFilterAnimated(const FilterOperations& filters); | 503 void OnFilterAnimated(const FilterOperations& filters); |
| 504 void OnOpacityAnimated(float opacity); | 504 void OnOpacityAnimated(float opacity); |
| 505 void OnTransformAnimated(const gfx::Transform& transform); | 505 void OnTransformAnimated(const gfx::Transform& transform); |
| 506 void OnScrollOffsetAnimated(const gfx::ScrollOffset& scroll_offset); | 506 void OnScrollOffsetAnimated(const gfx::ScrollOffset& scroll_offset); |
| 507 void OnTransformIsPotentiallyAnimatingChanged(bool is_animating); | 507 void OnTransformIsPotentiallyAnimatingChanged(bool is_animating); |
| 508 void OnOpacityIsCurrentlyAnimatingChanged(bool is_currently_animating); |
| 508 bool HasActiveAnimationForTesting() const; | 509 bool HasActiveAnimationForTesting() const; |
| 509 | 510 |
| 510 protected: | 511 protected: |
| 511 friend class LayerImpl; | 512 friend class LayerImpl; |
| 512 friend class TreeSynchronizer; | 513 friend class TreeSynchronizer; |
| 513 virtual ~Layer(); | 514 virtual ~Layer(); |
| 514 Layer(); | 515 Layer(); |
| 515 | 516 |
| 516 // These SetNeeds functions are in order of severity of update: | 517 // These SetNeeds functions are in order of severity of update: |
| 517 // | 518 // |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 679 // These all act like draw properties, so don't need push properties. | 680 // These all act like draw properties, so don't need push properties. |
| 680 gfx::Rect visible_layer_rect_; | 681 gfx::Rect visible_layer_rect_; |
| 681 size_t num_unclipped_descendants_; | 682 size_t num_unclipped_descendants_; |
| 682 | 683 |
| 683 DISALLOW_COPY_AND_ASSIGN(Layer); | 684 DISALLOW_COPY_AND_ASSIGN(Layer); |
| 684 }; | 685 }; |
| 685 | 686 |
| 686 } // namespace cc | 687 } // namespace cc |
| 687 | 688 |
| 688 #endif // CC_LAYERS_LAYER_H_ | 689 #endif // CC_LAYERS_LAYER_H_ |
| OLD | NEW |