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

Side by Side Diff: cc/animation/element_animations.h

Issue 2971503002: Transform animations should not collapse by default when interpolating (Closed)
Patch Set: try again Created 3 years, 5 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_ANIMATION_ELEMENT_ANIMATIONS_H_ 5 #ifndef CC_ANIMATION_ELEMENT_ANIMATIONS_H_
6 #define CC_ANIMATION_ELEMENT_ANIMATIONS_H_ 6 #define CC_ANIMATION_ELEMENT_ANIMATIONS_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "base/observer_list.h" 13 #include "base/observer_list.h"
14 #include "cc/animation/animation_export.h" 14 #include "cc/animation/animation_export.h"
15 #include "cc/trees/element_id.h" 15 #include "cc/trees/element_id.h"
16 #include "cc/trees/property_animation_state.h" 16 #include "cc/trees/property_animation_state.h"
17 #include "cc/trees/target_property.h" 17 #include "cc/trees/target_property.h"
18 #include "ui/gfx/geometry/scroll_offset.h" 18 #include "ui/gfx/geometry/scroll_offset.h"
19 #include "ui/gfx/transform.h" 19 #include "ui/gfx/transform.h"
20 20
21 namespace gfx { 21 namespace gfx {
22 class BoxF; 22 class BoxF;
23 } 23 }
24 24
25 namespace cc { 25 namespace cc {
26 26
27 class AnimationHost; 27 class AnimationHost;
28 class AnimationPlayer; 28 class AnimationPlayer;
29 class FilterOperations; 29 class FilterOperations;
30 class TransformOperations;
30 enum class ElementListType; 31 enum class ElementListType;
31 struct AnimationEvent; 32 struct AnimationEvent;
32 33
33 enum class UpdateTickingType { NORMAL, FORCE }; 34 enum class UpdateTickingType { NORMAL, FORCE };
34 35
35 // An ElementAnimations owns a list of all AnimationPlayers, attached to 36 // An ElementAnimations owns a list of all AnimationPlayers, attached to
36 // the element. 37 // the element.
37 // This is a CC counterpart for blink::ElementAnimations (in 1:1 relationship). 38 // This is a CC counterpart for blink::ElementAnimations (in 1:1 relationship).
38 // No pointer to/from respective blink::ElementAnimations object for now. 39 // No pointer to/from respective blink::ElementAnimations object for now.
39 class CC_ANIMATION_EXPORT ElementAnimations 40 class CC_ANIMATION_EXPORT ElementAnimations
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 142
142 void SetNeedsPushProperties(); 143 void SetNeedsPushProperties();
143 bool needs_push_properties() const { return needs_push_properties_; } 144 bool needs_push_properties() const { return needs_push_properties_; }
144 145
145 void UpdateClientAnimationState(); 146 void UpdateClientAnimationState();
146 void SetNeedsUpdateImplClientState(); 147 void SetNeedsUpdateImplClientState();
147 148
148 void NotifyClientOpacityAnimated(float opacity, 149 void NotifyClientOpacityAnimated(float opacity,
149 bool notify_active_elements, 150 bool notify_active_elements,
150 bool notify_pending_elements); 151 bool notify_pending_elements);
151 void NotifyClientTransformAnimated(const gfx::Transform& transform, 152 void NotifyClientTransformOperationsAnimated(
152 bool notify_active_elements, 153 const TransformOperations& operations,
153 bool notify_pending_elements); 154 bool notify_active_elements,
155 bool notify_pending_elements);
154 void NotifyClientFilterAnimated(const FilterOperations& filter, 156 void NotifyClientFilterAnimated(const FilterOperations& filter,
155 bool notify_active_elements, 157 bool notify_active_elements,
156 bool notify_pending_elements); 158 bool notify_pending_elements);
157 void NotifyClientScrollOffsetAnimated(const gfx::ScrollOffset& scroll_offset, 159 void NotifyClientScrollOffsetAnimated(const gfx::ScrollOffset& scroll_offset,
158 bool notify_active_elements, 160 bool notify_active_elements,
159 bool notify_pending_elements); 161 bool notify_pending_elements);
160 gfx::ScrollOffset ScrollOffsetForAnimation() const; 162 gfx::ScrollOffset ScrollOffsetForAnimation() const;
161 163
162 private: 164 private:
163 friend class base::RefCounted<ElementAnimations>; 165 friend class base::RefCounted<ElementAnimations>;
(...skipping 27 matching lines...) Expand all
191 PropertyAnimationState pending_state_; 193 PropertyAnimationState pending_state_;
192 194
193 mutable bool needs_update_impl_client_state_; 195 mutable bool needs_update_impl_client_state_;
194 196
195 DISALLOW_COPY_AND_ASSIGN(ElementAnimations); 197 DISALLOW_COPY_AND_ASSIGN(ElementAnimations);
196 }; 198 };
197 199
198 } // namespace cc 200 } // namespace cc
199 201
200 #endif // CC_ANIMATION_ELEMENT_ANIMATIONS_H_ 202 #endif // CC_ANIMATION_ELEMENT_ANIMATIONS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698