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

Unified Diff: Source/WebCore/platform/graphics/chromium/cc/CCActiveAnimation.h

Issue 10384167: Merge 116554 - [chromium] Add impl-thread support for fill-mode and direction css animation propert… (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1132/
Patch Set: Created 8 years, 7 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 | « no previous file | Source/WebCore/platform/graphics/chromium/cc/CCActiveAnimation.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/platform/graphics/chromium/cc/CCActiveAnimation.h
===================================================================
--- Source/WebCore/platform/graphics/chromium/cc/CCActiveAnimation.h (revision 116999)
+++ Source/WebCore/platform/graphics/chromium/cc/CCActiveAnimation.h (working copy)
@@ -90,6 +90,10 @@
void suspend(double monotonicTime);
void resume(double monotonicTime);
+ // If alternatesDirection is true, on odd numbered iterations we reverse the curve.
+ bool alternatesDirection() const { return m_alternatesDirection; }
+ void setAlternatesDirection(bool alternates) { m_alternatesDirection = alternates; }
+
bool isFinishedAt(double monotonicTime) const;
bool isFinished() const { return m_runState == Finished || m_runState == Aborted; }
@@ -128,6 +132,7 @@
RunState m_runState;
int m_iterations;
double m_startTime;
+ bool m_alternatesDirection;
// The time offset effectively pushes the start of the animation back in time. This is
// used for resuming paused animations -- an animation is added with a non-zero time
« no previous file with comments | « no previous file | Source/WebCore/platform/graphics/chromium/cc/CCActiveAnimation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698