Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1412)

Side by Side Diff: cc/layers/layer_impl.h

Issue 1957533002: cc : Track opacity animation changes on effect tree (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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_IMPL_H_ 5 #ifndef CC_LAYERS_LAYER_IMPL_H_
6 #define CC_LAYERS_LAYER_IMPL_H_ 6 #define CC_LAYERS_LAYER_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 89
90 int id() const { return layer_id_; } 90 int id() const { return layer_id_; }
91 91
92 // Interactions with attached animations. 92 // Interactions with attached animations.
93 gfx::ScrollOffset ScrollOffsetForAnimation() const; 93 gfx::ScrollOffset ScrollOffsetForAnimation() const;
94 void OnFilterAnimated(const FilterOperations& filters); 94 void OnFilterAnimated(const FilterOperations& filters);
95 void OnOpacityAnimated(float opacity); 95 void OnOpacityAnimated(float opacity);
96 void OnTransformAnimated(const gfx::Transform& transform); 96 void OnTransformAnimated(const gfx::Transform& transform);
97 void OnScrollOffsetAnimated(const gfx::ScrollOffset& scroll_offset); 97 void OnScrollOffsetAnimated(const gfx::ScrollOffset& scroll_offset);
98 void OnTransformIsPotentiallyAnimatingChanged(bool is_animating); 98 void OnTransformIsPotentiallyAnimatingChanged(bool is_animating);
99 void OnOpacityIsCurrentlyAnimatingChanged(bool is_currently_animating);
100 void OnOpacityIsPotentiallyAnimatingChanged(bool has_potential_animation);
99 bool IsActive() const; 101 bool IsActive() const;
100 bool OpacityCanAnimateOnImplThread() const { return false; } 102 bool OpacityCanAnimateOnImplThread() const { return false; }
101 103
102 // Tree structure. 104 // Tree structure.
103 LayerImpl* parent() { return parent_; } 105 LayerImpl* parent() { return parent_; }
104 LayerImplList& children() { return children_; } 106 LayerImplList& children() { return children_; }
105 LayerImpl* child_at(size_t index) const { return children_[index]; } 107 LayerImpl* child_at(size_t index) const { return children_[index]; }
106 void AddChild(std::unique_ptr<LayerImpl> child); 108 void AddChild(std::unique_ptr<LayerImpl> child);
107 std::unique_ptr<LayerImpl> RemoveChildForTesting(LayerImpl* child); 109 std::unique_ptr<LayerImpl> RemoveChildForTesting(LayerImpl* child);
108 void SetParent(LayerImpl* parent); 110 void SetParent(LayerImpl* parent);
(...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after
661 bool scrolls_drawn_descendant_; 663 bool scrolls_drawn_descendant_;
662 // If true, the layer or one of its descendants has a touch handler. 664 // If true, the layer or one of its descendants has a touch handler.
663 bool layer_or_descendant_has_touch_handler_; 665 bool layer_or_descendant_has_touch_handler_;
664 666
665 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 667 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
666 }; 668 };
667 669
668 } // namespace cc 670 } // namespace cc
669 671
670 #endif // CC_LAYERS_LAYER_IMPL_H_ 672 #endif // CC_LAYERS_LAYER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698