Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 | |
| OLD | NEW |