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

Side by Side Diff: third_party/WebKit/Source/core/animation/Keyframe.h

Issue 2043273002: Defer compositor keyframe snapshots until the next style resolve (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 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 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 Keyframe_h 5 #ifndef Keyframe_h
6 #define Keyframe_h 6 #define Keyframe_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/animation/AnimationEffect.h" 9 #include "core/animation/AnimationEffect.h"
10 #include "core/animation/EffectModel.h" 10 #include "core/animation/EffectModel.h"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 public: 65 public:
66 virtual ~PropertySpecificKeyframe() { } 66 virtual ~PropertySpecificKeyframe() { }
67 double offset() const { return m_offset; } 67 double offset() const { return m_offset; }
68 TimingFunction& easing() const { return *m_easing; } 68 TimingFunction& easing() const { return *m_easing; }
69 EffectModel::CompositeOperation composite() const { return m_composite; } 69 EffectModel::CompositeOperation composite() const { return m_composite; }
70 double underlyingFraction() const { return m_composite == EffectModel::C ompositeReplace ? 0 : 1; } 70 double underlyingFraction() const { return m_composite == EffectModel::C ompositeReplace ? 0 : 1; }
71 virtual bool isNeutral() const { NOTREACHED(); return false; } 71 virtual bool isNeutral() const { NOTREACHED(); return false; }
72 virtual PassRefPtr<PropertySpecificKeyframe> cloneWithOffset(double offs et) const = 0; 72 virtual PassRefPtr<PropertySpecificKeyframe> cloneWithOffset(double offs et) const = 0;
73 73
74 // FIXME: Remove this once CompositorAnimations no longer depends on Ani matableValues 74 // FIXME: Remove this once CompositorAnimations no longer depends on Ani matableValues
75 virtual bool populateAnimatableValue(CSSPropertyID, Element&, const Comp utedStyle* baseStyle, bool force) const { return false; } 75 virtual bool populateAnimatableValue(CSSPropertyID, Element&, const Comp utedStyle& baseStyle, const ComputedStyle* parentStyle) const { return false; }
76 virtual const PassRefPtr<AnimatableValue> getAnimatableValue() const = 0 ; 76 virtual const PassRefPtr<AnimatableValue> getAnimatableValue() const = 0 ;
77 77
78 virtual bool isAnimatableValuePropertySpecificKeyframe() const { return false; } 78 virtual bool isAnimatableValuePropertySpecificKeyframe() const { return false; }
79 virtual bool isCSSPropertySpecificKeyframe() const { return false; } 79 virtual bool isCSSPropertySpecificKeyframe() const { return false; }
80 virtual bool isSVGPropertySpecificKeyframe() const { return false; } 80 virtual bool isSVGPropertySpecificKeyframe() const { return false; }
81 81
82 virtual PassRefPtr<PropertySpecificKeyframe> neutralKeyframe(double offs et, PassRefPtr<TimingFunction> easing) const = 0; 82 virtual PassRefPtr<PropertySpecificKeyframe> neutralKeyframe(double offs et, PassRefPtr<TimingFunction> easing) const = 0;
83 virtual PassRefPtr<Interpolation> createInterpolation(PropertyHandle, co nst Keyframe::PropertySpecificKeyframe& end) const; 83 virtual PassRefPtr<Interpolation> createInterpolation(PropertyHandle, co nst Keyframe::PropertySpecificKeyframe& end) const;
84 84
85 protected: 85 protected:
(...skipping 23 matching lines...) Expand all
109 double m_offset; 109 double m_offset;
110 EffectModel::CompositeOperation m_composite; 110 EffectModel::CompositeOperation m_composite;
111 RefPtr<TimingFunction> m_easing; 111 RefPtr<TimingFunction> m_easing;
112 }; 112 };
113 113
114 using PropertySpecificKeyframe = Keyframe::PropertySpecificKeyframe; 114 using PropertySpecificKeyframe = Keyframe::PropertySpecificKeyframe;
115 115
116 } // namespace blink 116 } // namespace blink
117 117
118 #endif // Keyframe_h 118 #endif // Keyframe_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698