| 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 AttachAnimation(WorkletAnimationBase&); |
| 24 void DetachAnimation(WorkletAnimationBase&); |
| 25 |
| 26 void Update(); |
| 27 |
| 28 DECLARE_TRACE(); |
| 29 |
| 30 private: |
| 31 HeapHashSet<Member<WorkletAnimationBase>> pending_animations_; |
| 32 HeapHashSet<Member<WorkletAnimationBase>> compositor_animations_; |
| 33 }; |
| 34 |
| 35 } // namespace blink |
| 36 |
| 37 #endif // WorkletAnimationController_h |
| OLD | NEW |