| 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 468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 479 friend class LayerTreeHostCommon; | 479 friend class LayerTreeHostCommon; |
| 480 friend class LayerTreeHost; | 480 friend class LayerTreeHost; |
| 481 | 481 |
| 482 // Interactions with attached animations. | 482 // Interactions with attached animations. |
| 483 gfx::ScrollOffset ScrollOffsetForAnimation() const; | 483 gfx::ScrollOffset ScrollOffsetForAnimation() const; |
| 484 void OnFilterAnimated(const FilterOperations& filters); | 484 void OnFilterAnimated(const FilterOperations& filters); |
| 485 void OnOpacityAnimated(float opacity); | 485 void OnOpacityAnimated(float opacity); |
| 486 void OnTransformAnimated(const gfx::Transform& transform); | 486 void OnTransformAnimated(const gfx::Transform& transform); |
| 487 void OnScrollOffsetAnimated(const gfx::ScrollOffset& scroll_offset); | 487 void OnScrollOffsetAnimated(const gfx::ScrollOffset& scroll_offset); |
| 488 | 488 |
| 489 void OnIsAnimatingChanged(const PropertyAnimationState& mask, | |
| 490 const PropertyAnimationState& state); | |
| 491 | |
| 492 bool FilterIsAnimating() const; | 489 bool FilterIsAnimating() const; |
| 493 bool TransformIsAnimating() const; | 490 bool TransformIsAnimating() const; |
| 494 bool ScrollOffsetAnimationWasInterrupted() const; | 491 bool ScrollOffsetAnimationWasInterrupted() const; |
| 495 bool HasOnlyTranslationTransforms() const; | 492 bool HasOnlyTranslationTransforms() const; |
| 496 | 493 |
| 497 void AddScrollChild(Layer* child); | 494 void AddScrollChild(Layer* child); |
| 498 void RemoveScrollChild(Layer* child); | 495 void RemoveScrollChild(Layer* child); |
| 499 | 496 |
| 500 void AddClipChild(Layer* child); | 497 void AddClipChild(Layer* child); |
| 501 void RemoveClipChild(Layer* child); | 498 void RemoveClipChild(Layer* child); |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 648 // These all act like draw properties, so don't need push properties. | 645 // These all act like draw properties, so don't need push properties. |
| 649 gfx::Rect visible_layer_rect_; | 646 gfx::Rect visible_layer_rect_; |
| 650 size_t num_unclipped_descendants_; | 647 size_t num_unclipped_descendants_; |
| 651 | 648 |
| 652 DISALLOW_COPY_AND_ASSIGN(Layer); | 649 DISALLOW_COPY_AND_ASSIGN(Layer); |
| 653 }; | 650 }; |
| 654 | 651 |
| 655 } // namespace cc | 652 } // namespace cc |
| 656 | 653 |
| 657 #endif // CC_LAYERS_LAYER_H_ | 654 #endif // CC_LAYERS_LAYER_H_ |
| OLD | NEW |