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

Side by Side Diff: public/platform/WebCompositorAnimation.h

Issue 881183003: Animation: Cancel same-property animations on compositor (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add manual test. Improve code a bit. Created 5 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 unified diff | Download patch
« no previous file with comments | « Source/core/animation/KeyframeEffectModel.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 WebCompositorAnimation_h 5 #ifndef WebCompositorAnimation_h
6 #define WebCompositorAnimation_h 6 #define WebCompositorAnimation_h
7 7
8 namespace blink { 8 namespace blink {
9 9
10 // A compositor driven animation. 10 // A compositor driven animation.
(...skipping 15 matching lines...) Expand all
26 26
27 enum FillMode { 27 enum FillMode {
28 FillModeNone = 0, 28 FillModeNone = 0,
29 FillModeForwards, 29 FillModeForwards,
30 FillModeBackwards, 30 FillModeBackwards,
31 FillModeBoth 31 FillModeBoth
32 }; 32 };
33 33
34 virtual ~WebCompositorAnimation() { } 34 virtual ~WebCompositorAnimation() { }
35 35
36 // An id is effectively the animation's name, and it is not unique. 36 // An id must be unique.
37 virtual int id() = 0; 37 virtual int id() = 0;
38 virtual int group() = 0; 38 virtual int group() = 0;
39 39
40 virtual TargetProperty targetProperty() const = 0; 40 virtual TargetProperty targetProperty() const = 0;
41 41
42 // This is the number of times that the animation will play. If this 42 // This is the number of times that the animation will play. If this
43 // value is zero the animation will not play. If it is negative, then 43 // value is zero the animation will not play. If it is negative, then
44 // the animation will loop indefinitely. 44 // the animation will loop indefinitely.
45 virtual double iterations() const = 0; 45 virtual double iterations() const = 0;
46 virtual void setIterations(double) = 0; 46 virtual void setIterations(double) = 0;
(...skipping 13 matching lines...) Expand all
60 virtual FillMode fillMode() const = 0; 60 virtual FillMode fillMode() const = 0;
61 virtual void setFillMode(FillMode) = 0; 61 virtual void setFillMode(FillMode) = 0;
62 62
63 virtual double iterationStart() const = 0; 63 virtual double iterationStart() const = 0;
64 virtual void setIterationStart(double) = 0; 64 virtual void setIterationStart(double) = 0;
65 }; 65 };
66 66
67 } // namespace blink 67 } // namespace blink
68 68
69 #endif // WebCompositorAnimation_h 69 #endif // WebCompositorAnimation_h
OLDNEW
« no previous file with comments | « Source/core/animation/KeyframeEffectModel.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698