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

Unified Diff: third_party/WebKit/Source/core/animation/ElementAnimations.h

Issue 1602343002: compositor-worker: cc->blink mutation plumbing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@compositor-worker-ian-patch
Patch Set: Use animation machinery instead of updating inline style Created 4 years, 10 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
Index: third_party/WebKit/Source/core/animation/ElementAnimations.h
diff --git a/third_party/WebKit/Source/core/animation/ElementAnimations.h b/third_party/WebKit/Source/core/animation/ElementAnimations.h
index d74639b9882565918521c5a5abec27d9d050fa20..54fc12a4e9ec213c38af94616ee67fdb198c71cf 100644
--- a/third_party/WebKit/Source/core/animation/ElementAnimations.h
+++ b/third_party/WebKit/Source/core/animation/ElementAnimations.h
@@ -32,6 +32,7 @@
#define ElementAnimations_h
#include "core/animation/AnimationStack.h"
+#include "core/animation/CompositorMutationAnimations.h"
#include "core/animation/css/CSSAnimations.h"
#include "wtf/HashCountedSet.h"
#include "wtf/HashMap.h"
@@ -54,6 +55,10 @@ public:
// during a style recalc. CSS Transitions are included in this stack.
AnimationStack& animationStack() { return m_animationStack; }
const AnimationStack& animationStack() const { return m_animationStack; }
+ // Tracks long running animations that are responsible for applying mutations
+ // from compositor worker.
+ CompositorMutationAnimations& compositorMutationAnimations() { return m_compositorMutationAnimations; }
+ const CompositorMutationAnimations& compositorMutationAnimations() const { return m_compositorMutationAnimations; }
// Tracks the state of active CSS Animations and Transitions. The individual animations
// will also be part of the animation stack, but the mapping betwen animation name and
// animation is kept here.
@@ -85,6 +90,7 @@ private:
bool isAnimationStyleChange() const;
AnimationStack m_animationStack;
+ CompositorMutationAnimations m_compositorMutationAnimations;
CSSAnimations m_cssAnimations;
AnimationCountedSet m_animations;
bool m_animationStyleChange;

Powered by Google App Engine
This is Rietveld 408576698