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

Unified Diff: Source/core/animation/CompositorAnimationsImpl.h

Issue 220503002: Revert "Handle direction control in compositor Animations" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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
« no previous file with comments | « Source/core/animation/CompositorAnimations.cpp ('k') | Source/core/animation/CompositorAnimationsTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/animation/CompositorAnimationsImpl.h
diff --git a/Source/core/animation/CompositorAnimationsImpl.h b/Source/core/animation/CompositorAnimationsImpl.h
index 70e677060538c27299dc8341517dd00708e32cb7..4ad07bd1c140513dee6ce2e65573a85d4ece2f9b 100644
--- a/Source/core/animation/CompositorAnimationsImpl.h
+++ b/Source/core/animation/CompositorAnimationsImpl.h
@@ -41,7 +41,8 @@ typedef KeyframeEffectModel::PropertySpecificKeyframeVector KeyframeVector;
class CompositorAnimationsImpl {
private:
struct CompositorTiming {
- Timing::PlaybackDirection direction;
+ bool reverse;
+ bool alternate;
double scaledDuration;
double scaledTimeOffset;
int adjustedIterationCount;
@@ -51,7 +52,7 @@ private:
static void getAnimationOnCompositor(const Timing&, const KeyframeEffectModel&, Vector<OwnPtr<blink::WebAnimation> >& animations);
- static void addKeyframesToCurve(blink::WebAnimationCurve&, const KeyframeVector&);
+ static void addKeyframesToCurve(blink::WebAnimationCurve&, const KeyframeVector&, bool reverse);
friend class CompositorAnimations;
friend class AnimationCompositorAnimationsTest;
« no previous file with comments | « Source/core/animation/CompositorAnimations.cpp ('k') | Source/core/animation/CompositorAnimationsTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698