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 536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
547 | 547 |
548 // When true, the layer is about to perform an update. Any commit requests | 548 // When true, the layer is about to perform an update. Any commit requests |
549 // will be handled implicitly after the update completes. | 549 // will be handled implicitly after the update completes. |
550 bool ignore_set_needs_commit_; | 550 bool ignore_set_needs_commit_; |
551 | 551 |
552 private: | 552 private: |
553 friend class base::RefCounted<Layer>; | 553 friend class base::RefCounted<Layer>; |
554 friend class LayerSerializationTest; | 554 friend class LayerSerializationTest; |
555 friend class LayerTreeHostCommon; | 555 friend class LayerTreeHostCommon; |
556 friend class LayerTreeHost; | 556 friend class LayerTreeHost; |
| 557 friend class LayerTree; |
557 friend class LayerInternalsForTest; | 558 friend class LayerInternalsForTest; |
558 | 559 |
559 // Interactions with attached animations. | 560 // Interactions with attached animations. |
560 gfx::ScrollOffset ScrollOffsetForAnimation() const; | 561 gfx::ScrollOffset ScrollOffsetForAnimation() const; |
561 void OnFilterAnimated(const FilterOperations& filters); | 562 void OnFilterAnimated(const FilterOperations& filters); |
562 void OnOpacityAnimated(float opacity); | 563 void OnOpacityAnimated(float opacity); |
563 void OnTransformAnimated(const gfx::Transform& transform); | 564 void OnTransformAnimated(const gfx::Transform& transform); |
564 void OnScrollOffsetAnimated(const gfx::ScrollOffset& scroll_offset); | 565 void OnScrollOffsetAnimated(const gfx::ScrollOffset& scroll_offset); |
565 void OnTransformIsCurrentlyAnimatingChanged(bool is_animating); | 566 void OnTransformIsCurrentlyAnimatingChanged(bool is_animating); |
566 void OnTransformIsPotentiallyAnimatingChanged(bool is_animating); | 567 void OnTransformIsPotentiallyAnimatingChanged(bool is_animating); |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
725 // These all act like draw properties, so don't need push properties. | 726 // These all act like draw properties, so don't need push properties. |
726 gfx::Rect visible_layer_rect_; | 727 gfx::Rect visible_layer_rect_; |
727 size_t num_unclipped_descendants_; | 728 size_t num_unclipped_descendants_; |
728 | 729 |
729 DISALLOW_COPY_AND_ASSIGN(Layer); | 730 DISALLOW_COPY_AND_ASSIGN(Layer); |
730 }; | 731 }; |
731 | 732 |
732 } // namespace cc | 733 } // namespace cc |
733 | 734 |
734 #endif // CC_LAYERS_LAYER_H_ | 735 #endif // CC_LAYERS_LAYER_H_ |
OLD | NEW |