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

Side by Side Diff: third_party/WebKit/Source/core/animation/KeyframeEffectReadOnly.h

Issue 2869183002: Initial implementation of WorkletAnimation (Closed)
Patch Set: Rebase Created 3 years, 6 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 KeyframeEffectReadOnly_h 5 #ifndef KeyframeEffectReadOnly_h
6 #define KeyframeEffectReadOnly_h 6 #define KeyframeEffectReadOnly_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/animation/AnimationEffectReadOnly.h" 9 #include "core/animation/AnimationEffectReadOnly.h"
10 #include "core/animation/EffectModel.h" 10 #include "core/animation/EffectModel.h"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 class DictionarySequenceOrDictionary; 14 class DictionarySequenceOrDictionary;
15 class CompositorAnimationPlayer;
15 class Element; 16 class Element;
16 class ExceptionState; 17 class ExceptionState;
17 class ExecutionContext; 18 class ExecutionContext;
18 class PropertyHandle; 19 class PropertyHandle;
19 class SampledEffect; 20 class SampledEffect;
20 class UnrestrictedDoubleOrKeyframeEffectOptions; 21 class UnrestrictedDoubleOrKeyframeEffectOptions;
21 22
22 // Represents the effect of an Animation on an Element's properties. 23 // Represents the effect of an Animation on an Element's properties.
23 // http://w3c.github.io/web-animations/#the-keyframeeffect-interfaces 24 // http://w3c.github.io/web-animations/#the-keyframeeffect-interfaces
24 class CORE_EXPORT KeyframeEffectReadOnly : public AnimationEffectReadOnly { 25 class CORE_EXPORT KeyframeEffectReadOnly : public AnimationEffectReadOnly {
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 Element* Target() const { return target_; } 58 Element* Target() const { return target_; }
58 59
59 void NotifySampledEffectRemovedFromEffectStack(); 60 void NotifySampledEffectRemovedFromEffectStack();
60 61
61 bool IsCandidateForAnimationOnCompositor( 62 bool IsCandidateForAnimationOnCompositor(
62 double animation_playback_rate) const; 63 double animation_playback_rate) const;
63 // Must only be called once. 64 // Must only be called once.
64 bool MaybeStartAnimationOnCompositor(int group, 65 bool MaybeStartAnimationOnCompositor(int group,
65 double start_time, 66 double start_time,
66 double time_offset, 67 double time_offset,
67 double animation_playback_rate); 68 double animation_playback_rate,
69 CompositorAnimationPlayer*);
68 bool HasActiveAnimationsOnCompositor() const; 70 bool HasActiveAnimationsOnCompositor() const;
69 bool HasActiveAnimationsOnCompositor(const PropertyHandle&) const; 71 bool HasActiveAnimationsOnCompositor(const PropertyHandle&) const;
70 bool CancelAnimationOnCompositor(); 72 bool CancelAnimationOnCompositor();
71 void RestartAnimationOnCompositor(); 73 void RestartAnimationOnCompositor();
72 void CancelIncompatibleAnimationsOnCompositor(); 74 void CancelIncompatibleAnimationsOnCompositor();
73 void PauseAnimationForTestingOnCompositor(double pause_time); 75 void PauseAnimationForTestingOnCompositor(double pause_time);
74 76
75 void AttachCompositedLayers(); 77 void AttachCompositedLayers();
76 78
77 void SetCompositorAnimationIdsForTesting( 79 void SetCompositorAnimationIdsForTesting(
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 117
116 DEFINE_TYPE_CASTS(KeyframeEffectReadOnly, 118 DEFINE_TYPE_CASTS(KeyframeEffectReadOnly,
117 AnimationEffectReadOnly, 119 AnimationEffectReadOnly,
118 animationNode, 120 animationNode,
119 animationNode->IsKeyframeEffectReadOnly(), 121 animationNode->IsKeyframeEffectReadOnly(),
120 animationNode.IsKeyframeEffectReadOnly()); 122 animationNode.IsKeyframeEffectReadOnly());
121 123
122 } // namespace blink 124 } // namespace blink
123 125
124 #endif // KeyframeEffectReadOnly_h 126 #endif // KeyframeEffectReadOnly_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698