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

Unified Diff: cc/animation/element_animations.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | cc/animation/element_animations.cc » ('j') | cc/animation/element_animations_unittest.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/animation/element_animations.h
diff --git a/cc/animation/element_animations.h b/cc/animation/element_animations.h
index 04e68c26a4fc4634a12f25f42607c761dc1f2517..a3317a09a77ad1c3b233aa71e688cae7f21c000e 100644
--- a/cc/animation/element_animations.h
+++ b/cc/animation/element_animations.h
@@ -34,6 +34,7 @@ class AnimationPlayer;
class FilterOperations;
class KeyframeValueList;
enum class ElementListType;
+enum class AnimationChangeType;
// An ElementAnimations owns a list of all AnimationPlayers, attached to
// the element.
@@ -229,6 +230,14 @@ class CC_EXPORT ElementAnimations : public base::RefCounted<ElementAnimations> {
void UpdatePotentiallyAnimatingTransform();
+ void NotifyClientOpacityAnimationChanged(
+ bool notify_active_elements_about_potential_animation,
+ bool notify_active_elements_about_running_animation,
+ bool notify_pending_elements_about_potential_aniamtion,
+ bool notify_pending_elements_about_running_animation);
+
+ void UpdateAnimatingOpacity();
+
void OnFilterAnimated(ElementListType list_type,
const FilterOperations& filters);
void OnOpacityAnimated(ElementListType list_type, float opacity);
@@ -239,6 +248,9 @@ class CC_EXPORT ElementAnimations : public base::RefCounted<ElementAnimations> {
void OnAnimationWaitingForDeletion();
void OnTransformIsPotentiallyAnimatingChanged(ElementListType list_type,
bool is_animating);
+ void OnOpacityIsAnimatingChanged(ElementListType list_type,
+ AnimationChangeType change_type,
+ bool is_animating);
gfx::ScrollOffset ScrollOffsetForAnimation() const;
void NotifyPlayersAnimationStarted(base::TimeTicks monotonic_time,
@@ -278,6 +290,11 @@ class CC_EXPORT ElementAnimations : public base::RefCounted<ElementAnimations> {
bool potentially_animating_transform_for_active_elements_;
bool potentially_animating_transform_for_pending_elements_;
+ bool currently_running_opacity_animation_for_active_elements_;
+ bool currently_running_opacity_animation_for_pending_elements_;
+ bool potentially_animating_opacity_for_active_elements_;
+ bool potentially_animating_opacity_for_pending_elements_;
+
DISALLOW_COPY_AND_ASSIGN(ElementAnimations);
};
« no previous file with comments | « no previous file | cc/animation/element_animations.cc » ('j') | cc/animation/element_animations_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698