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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 SampledEffect_h 5 #ifndef SampledEffect_h
6 #define SampledEffect_h 6 #define SampledEffect_h
7 7
8 #include "core/animation/Animation.h" 8 #include "core/animation/Animation.h"
9 #include "core/animation/Interpolation.h" 9 #include "core/animation/Interpolation.h"
10 #include "core/animation/KeyframeEffect.h" 10 #include "core/animation/KeyframeEffect.h"
(...skipping 15 matching lines...) Expand all
26 } 26 }
27 27
28 void clear(); 28 void clear();
29 29
30 const Vector<RefPtr<Interpolation>>& interpolations() const { return m_inter polations; } 30 const Vector<RefPtr<Interpolation>>& interpolations() const { return m_inter polations; }
31 Vector<RefPtr<Interpolation>>& mutableInterpolations() { return m_interpolat ions; } 31 Vector<RefPtr<Interpolation>>& mutableInterpolations() { return m_interpolat ions; }
32 32
33 KeyframeEffect* effect() const { return m_effect; } 33 KeyframeEffect* effect() const { return m_effect; }
34 unsigned sequenceNumber() const { return m_sequenceNumber; } 34 unsigned sequenceNumber() const { return m_sequenceNumber; }
35 KeyframeEffect::Priority priority() const { return m_priority; } 35 KeyframeEffect::Priority priority() const { return m_priority; }
36 bool willNeverChange() const;
37 void removeReplacedInterpolations(const HashSet<PropertyHandle>&);
38 void updateReplacedProperties(HashSet<PropertyHandle>&);
36 39
37 DECLARE_TRACE(); 40 DECLARE_TRACE();
38 41
39 private: 42 private:
40 SampledEffect(KeyframeEffect*); 43 SampledEffect(KeyframeEffect*);
41 44
42 WeakMember<KeyframeEffect> m_effect; 45 WeakMember<KeyframeEffect> m_effect;
43 Member<Animation> m_animation;
44 Vector<RefPtr<Interpolation>> m_interpolations; 46 Vector<RefPtr<Interpolation>> m_interpolations;
45 const unsigned m_sequenceNumber; 47 const unsigned m_sequenceNumber;
46 KeyframeEffect::Priority m_priority; 48 KeyframeEffect::Priority m_priority;
47 }; 49 };
48 50
49 } // namespace blink 51 } // namespace blink
50 52
51 #endif // SampledEffect_h 53 #endif // SampledEffect_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698