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

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

Issue 1987123002: cc : Track transform animation changes on transform 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 virtual ~LayerImpl(); 88 virtual ~LayerImpl();
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 OnTransformIsCurrentlyAnimatingChanged(bool is_currently_animating);
99 void OnTransformIsPotentiallyAnimatingChanged(bool has_potential_animation);
99 void OnOpacityIsCurrentlyAnimatingChanged(bool is_currently_animating); 100 void OnOpacityIsCurrentlyAnimatingChanged(bool is_currently_animating);
100 void OnOpacityIsPotentiallyAnimatingChanged(bool has_potential_animation); 101 void OnOpacityIsPotentiallyAnimatingChanged(bool has_potential_animation);
101 bool IsActive() const; 102 bool IsActive() const;
102 bool OpacityCanAnimateOnImplThread() const { return false; } 103 bool OpacityCanAnimateOnImplThread() const { return false; }
103 104
104 // Tree structure. 105 // Tree structure.
105 LayerImpl* parent() { return parent_; } 106 LayerImpl* parent() { return parent_; }
106 LayerImplList& children() { return children_; } 107 LayerImplList& children() { return children_; }
107 LayerImpl* child_at(size_t index) const { return children_[index]; } 108 LayerImpl* child_at(size_t index) const { return children_[index]; }
108 void AddChild(std::unique_ptr<LayerImpl> child); 109 void AddChild(std::unique_ptr<LayerImpl> child);
(...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after
648 std::unique_ptr<RenderSurfaceImpl> render_surface_; 649 std::unique_ptr<RenderSurfaceImpl> render_surface_;
649 650
650 bool scrolls_drawn_descendant_; 651 bool scrolls_drawn_descendant_;
651 652
652 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 653 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
653 }; 654 };
654 655
655 } // namespace cc 656 } // namespace cc
656 657
657 #endif // CC_LAYERS_LAYER_IMPL_H_ 658 #endif // CC_LAYERS_LAYER_IMPL_H_
OLDNEW
« cc/layers/layer.cc ('K') | « cc/layers/layer.cc ('k') | cc/layers/layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698