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

Side by Side Diff: Source/core/animation/KeyframeEffectModel.h

Issue 732153003: Update a result vector when sampling animation effects. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 1 month 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 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 const KeyframeVector& getFrames() const { return m_keyframes; } 79 const KeyframeVector& getFrames() const { return m_keyframes; }
80 // FIXME: Implement setFrames() 80 // FIXME: Implement setFrames()
81 81
82 const PropertySpecificKeyframeVector& getPropertySpecificKeyframes(CSSProper tyID id) const 82 const PropertySpecificKeyframeVector& getPropertySpecificKeyframes(CSSProper tyID id) const
83 { 83 {
84 ensureKeyframeGroups(); 84 ensureKeyframeGroups();
85 return m_keyframeGroups->get(id)->keyframes(); 85 return m_keyframeGroups->get(id)->keyframes();
86 } 86 }
87 87
88 // AnimationEffect implementation. 88 // AnimationEffect implementation.
89 virtual PassOwnPtrWillBeRawPtr<WillBeHeapVector<RefPtrWillBeMember<Interpola tion>>> sample(int iteration, double fraction, double iterationDuration) const o verride; 89 virtual void sample(int iteration, double fraction, double iterationDuration , OwnPtrWillBeRawPtr<WillBeHeapVector<RefPtrWillBeMember<Interpolation>>>&) cons t override;
90 90
91 virtual bool isKeyframeEffectModel() const override { return true; } 91 virtual bool isKeyframeEffectModel() const override { return true; }
92 92
93 virtual bool isAnimatableValueKeyframeEffectModel() const { return false; } 93 virtual bool isAnimatableValueKeyframeEffectModel() const { return false; }
94 virtual bool isStringKeyframeEffectModel() const { return false; } 94 virtual bool isStringKeyframeEffectModel() const { return false; }
95 95
96 virtual void trace(Visitor*) override; 96 virtual void trace(Visitor*) override;
97 97
98 // FIXME: This is a hack used to resolve CSSValues to AnimatableValues while we have a valid handle on an element. 98 // FIXME: This is a hack used to resolve CSSValues to AnimatableValues while we have a valid handle on an element.
99 // This should be removed once StringKeyframes no longer uses InterpolableAn imatableValues. 99 // This should be removed once StringKeyframes no longer uses InterpolableAn imatableValues.
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 172
173 template <> 173 template <>
174 inline bool KeyframeEffectModel<AnimatableValueKeyframe>::isAnimatableValueKeyfr ameEffectModel() const { return true; } 174 inline bool KeyframeEffectModel<AnimatableValueKeyframe>::isAnimatableValueKeyfr ameEffectModel() const { return true; }
175 175
176 template <> 176 template <>
177 inline bool KeyframeEffectModel<StringKeyframe>::isStringKeyframeEffectModel() c onst { return true; } 177 inline bool KeyframeEffectModel<StringKeyframe>::isStringKeyframeEffectModel() c onst { return true; }
178 178
179 } // namespace blink 179 } // namespace blink
180 180
181 #endif // KeyframeEffectModel_h 181 #endif // KeyframeEffectModel_h
OLDNEW
« no previous file with comments | « Source/core/animation/InterpolationEffectTest.cpp ('k') | Source/core/animation/KeyframeEffectModel.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698