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

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

Issue 1698093005: Discard SampledEffects on elements if they are redundant (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@_renameToSampledEffect
Patch Set: Rebased 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/SampledEffect.h
diff --git a/third_party/WebKit/Source/core/animation/SampledEffect.h b/third_party/WebKit/Source/core/animation/SampledEffect.h
index 15043071e7a2257a52c915947ad21d3692ade2cf..4045ec7e5797b00722cefbfa3163ff836a681bfa 100644
--- a/third_party/WebKit/Source/core/animation/SampledEffect.h
+++ b/third_party/WebKit/Source/core/animation/SampledEffect.h
@@ -33,6 +33,9 @@ public:
KeyframeEffect* effect() const { return m_effect; }
unsigned sequenceNumber() const { return m_sequenceNumber; }
KeyframeEffect::Priority priority() const { return m_priority; }
+ bool willNeverChange() const;
+ void removeReplacedInterpolations(const HashSet<PropertyHandle>&);
+ void updateReplacedProperties(HashSet<PropertyHandle>&);
DECLARE_TRACE();
@@ -40,7 +43,6 @@ private:
SampledEffect(KeyframeEffect*);
WeakMember<KeyframeEffect> m_effect;
- Member<Animation> m_animation;
Vector<RefPtr<Interpolation>> m_interpolations;
const unsigned m_sequenceNumber;
KeyframeEffect::Priority m_priority;

Powered by Google App Engine
This is Rietveld 408576698