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 540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
551 | 551 |
552 // When true, the layer is about to perform an update. Any commit requests | 552 // When true, the layer is about to perform an update. Any commit requests |
553 // will be handled implicitly after the update completes. | 553 // will be handled implicitly after the update completes. |
554 bool ignore_set_needs_commit_; | 554 bool ignore_set_needs_commit_; |
555 | 555 |
556 private: | 556 private: |
557 friend class base::RefCounted<Layer>; | 557 friend class base::RefCounted<Layer>; |
558 friend class LayerSerializationTest; | 558 friend class LayerSerializationTest; |
559 friend class LayerTreeHostCommon; | 559 friend class LayerTreeHostCommon; |
560 friend class LayerTreeHost; | 560 friend class LayerTreeHost; |
561 friend class LayerTree; | |
Khushal
2016/08/08 16:55:02
Did we need to friend LayerTree in this change?
xingliu
2016/08/09 20:57:04
In LayerTree MutatorHostClient override functions,
| |
561 friend class LayerInternalsForTest; | 562 friend class LayerInternalsForTest; |
562 | 563 |
563 // Interactions with attached animations. | 564 // Interactions with attached animations. |
564 gfx::ScrollOffset ScrollOffsetForAnimation() const; | 565 gfx::ScrollOffset ScrollOffsetForAnimation() const; |
565 void OnFilterAnimated(const FilterOperations& filters); | 566 void OnFilterAnimated(const FilterOperations& filters); |
566 void OnOpacityAnimated(float opacity); | 567 void OnOpacityAnimated(float opacity); |
567 void OnTransformAnimated(const gfx::Transform& transform); | 568 void OnTransformAnimated(const gfx::Transform& transform); |
568 void OnScrollOffsetAnimated(const gfx::ScrollOffset& scroll_offset); | 569 void OnScrollOffsetAnimated(const gfx::ScrollOffset& scroll_offset); |
569 void OnTransformIsCurrentlyAnimatingChanged(bool is_animating); | 570 void OnTransformIsCurrentlyAnimatingChanged(bool is_animating); |
570 void OnTransformIsPotentiallyAnimatingChanged(bool is_animating); | 571 void OnTransformIsPotentiallyAnimatingChanged(bool is_animating); |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
729 // These all act like draw properties, so don't need push properties. | 730 // These all act like draw properties, so don't need push properties. |
730 gfx::Rect visible_layer_rect_; | 731 gfx::Rect visible_layer_rect_; |
731 size_t num_unclipped_descendants_; | 732 size_t num_unclipped_descendants_; |
732 | 733 |
733 DISALLOW_COPY_AND_ASSIGN(Layer); | 734 DISALLOW_COPY_AND_ASSIGN(Layer); |
734 }; | 735 }; |
735 | 736 |
736 } // namespace cc | 737 } // namespace cc |
737 | 738 |
738 #endif // CC_LAYERS_LAYER_H_ | 739 #endif // CC_LAYERS_LAYER_H_ |
OLD | NEW |