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

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

Issue 178263006: Handle direction control in compositor Animations (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: new patch: add a reference to chromium issue Created 6 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/animation/CompositorAnimationsImpl.h
diff --git a/Source/core/animation/CompositorAnimationsImpl.h b/Source/core/animation/CompositorAnimationsImpl.h
index 9bf8889e195c8334c67231ed4d50606ebffa0868..e7e972c2e0a71b28afca3dba53a009c7dd157a15 100644
--- a/Source/core/animation/CompositorAnimationsImpl.h
+++ b/Source/core/animation/CompositorAnimationsImpl.h
@@ -41,8 +41,13 @@ typedef KeyframeEffectModel::PropertySpecificKeyframeVector KeyframeVector;
class CompositorAnimationsImpl {
private:
struct CompositorTiming {
- bool reverse;
- bool alternate;
+ enum Direction {
+ Normal = 0,
+ Reverse,
+ Alternate,
+ AlternateReverse
+ };
+ Direction direction;
dstockwell 2014/03/05 02:07:19 Can't we reuse Timing::PlaybackDirection?
double scaledDuration;
double scaledTimeOffset;
int adjustedIterationCount;

Powered by Google App Engine
This is Rietveld 408576698