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

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

Issue 2869183002: Initial implementation of WorkletAnimation (Closed)
Patch Set: DCHECK for threaded animation support 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
(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 WorkletAnimationController_h
6 #define WorkletAnimationController_h
7
8 #include "core/CoreExport.h"
9 #include "platform/heap/GarbageCollected.h"
10 #include "platform/heap/HeapAllocator.h"
11 #include "platform/heap/Visitor.h"
12
13 namespace blink {
14
15 class WorkletAnimationBase;
16
17 class CORE_EXPORT WorkletAnimationController
18 : public GarbageCollectedFinalized<WorkletAnimationController> {
19 public:
20 WorkletAnimationController();
21 virtual ~WorkletAnimationController();
22
23 void RegisterAnimation(WorkletAnimationBase*);
24 void DeregisterAnimation(WorkletAnimationBase*);
majidvp 2017/06/06 16:04:27 nit: AnimationTimeline uses attach/detach terminol
smcgruer 2017/06/07 18:23:24 Hrm, but CompositorPendingAnimations uses 'Add'. S
25
26 void Update();
27
28 DECLARE_TRACE();
29
30 private:
31 HeapHashSet<Member<WorkletAnimationBase>> animations_;
32 };
33
34 } // namespace blink
35
36 #endif // WorkletAnimationController_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698