| 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 <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 664 private: | 664 private: |
| 665 friend class base::RefCounted<Layer>; | 665 friend class base::RefCounted<Layer>; |
| 666 friend class LayerTreeHostCommon; | 666 friend class LayerTreeHostCommon; |
| 667 void SetParent(Layer* layer); | 667 void SetParent(Layer* layer); |
| 668 bool DescendantIsFixedToContainerLayer() const; | 668 bool DescendantIsFixedToContainerLayer() const; |
| 669 | 669 |
| 670 // This should only be called during BeginMainFrame since it does not | 670 // This should only be called during BeginMainFrame since it does not |
| 671 // trigger a Commit. | 671 // trigger a Commit. |
| 672 void SetHasRenderSurface(bool has_render_surface); | 672 void SetHasRenderSurface(bool has_render_surface); |
| 673 | 673 |
| 674 // Returns the index of the child or -1 if not found. | |
| 675 int IndexOfChild(const Layer* reference); | |
| 676 | |
| 677 // This should only be called from RemoveFromParent(). | 674 // This should only be called from RemoveFromParent(). |
| 678 void RemoveChildOrDependent(Layer* child); | 675 void RemoveChildOrDependent(Layer* child); |
| 679 | 676 |
| 680 // LayerAnimationValueProvider implementation. | 677 // LayerAnimationValueProvider implementation. |
| 681 gfx::ScrollOffset ScrollOffsetForAnimation() const override; | 678 gfx::ScrollOffset ScrollOffsetForAnimation() const override; |
| 682 | 679 |
| 683 // LayerAnimationValueObserver implementation. | 680 // LayerAnimationValueObserver implementation. |
| 684 void OnFilterAnimated(const FilterOperations& filters) override; | 681 void OnFilterAnimated(const FilterOperations& filters) override; |
| 685 void OnOpacityAnimated(float opacity) override; | 682 void OnOpacityAnimated(float opacity) override; |
| 686 void OnTransformAnimated(const gfx::Transform& transform) override; | 683 void OnTransformAnimated(const gfx::Transform& transform) override; |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 797 | 794 |
| 798 std::vector<FrameTimingRequest> frame_timing_requests_; | 795 std::vector<FrameTimingRequest> frame_timing_requests_; |
| 799 bool frame_timing_requests_dirty_; | 796 bool frame_timing_requests_dirty_; |
| 800 | 797 |
| 801 DISALLOW_COPY_AND_ASSIGN(Layer); | 798 DISALLOW_COPY_AND_ASSIGN(Layer); |
| 802 }; | 799 }; |
| 803 | 800 |
| 804 } // namespace cc | 801 } // namespace cc |
| 805 | 802 |
| 806 #endif // CC_LAYERS_LAYER_H_ | 803 #endif // CC_LAYERS_LAYER_H_ |
| OLD | NEW |