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

Side by Side Diff: third_party/WebKit/Source/modules/compositorworker/WorkletAnimation.h

Issue 2869183002: Initial implementation of WorkletAnimation (Closed)
Patch Set: Make WorkletAnimation subclass Animation Created 3 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef WorkletAnimation_h
6 #define WorkletAnimation_h
7
8 #include "bindings/core/v8/serialization/SerializedScriptValue.h"
9 #include "bindings/modules/v8/DocumentTimelineOrScrollTimeline.h"
10 #include "core/animation/AnimationTimeline.h"
11 #include "core/animation/KeyframeEffectReadOnly.h"
12 #include "modules/ModulesExport.h"
13 #include "platform/bindings/ScriptWrappable.h"
14
15 namespace blink {
16
17 class MODULES_EXPORT WorkletAnimation : public Animation {
18 DEFINE_WRAPPERTYPEINFO();
19
20 public:
21 static WorkletAnimation* Create(
22 String animator_name,
23 const HeapVector<Member<KeyframeEffectReadOnly>>&,
24 HeapVector<DocumentTimelineOrScrollTimeline>&,
25 RefPtr<SerializedScriptValue>,
26 ExceptionState&);
27
28 virtual ~WorkletAnimation() {}
29
30 DECLARE_VIRTUAL_TRACE();
31
32 private:
33 WorkletAnimation(ExecutionContext*,
34 AnimationTimeline&,
35 String animator_name,
36 const HeapVector<Member<KeyframeEffectReadOnly>>&,
37 HeapVector<DocumentTimelineOrScrollTimeline>&,
38 RefPtr<SerializedScriptValue>);
39
40 String animator_name_;
41 const HeapVector<Member<KeyframeEffectReadOnly>>& effects_;
42 HeapVector<DocumentTimelineOrScrollTimeline>& timelines_;
43 RefPtr<SerializedScriptValue> user_data_;
44 };
45
46 } // namespace blink
47
48 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698