Chromium Code Reviews| Index: third_party/WebKit/Source/core/animation/WorkletAnimationController.h |
| diff --git a/third_party/WebKit/Source/core/animation/WorkletAnimationController.h b/third_party/WebKit/Source/core/animation/WorkletAnimationController.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..7fa95d8e8e69ff5e9aab346ab36d6099918ccd61 |
| --- /dev/null |
| +++ b/third_party/WebKit/Source/core/animation/WorkletAnimationController.h |
| @@ -0,0 +1,36 @@ |
| +// Copyright 2017 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef WorkletAnimationController_h |
| +#define WorkletAnimationController_h |
| + |
| +#include "core/CoreExport.h" |
| +#include "platform/heap/GarbageCollected.h" |
| +#include "platform/heap/HeapAllocator.h" |
| +#include "platform/heap/Visitor.h" |
| + |
| +namespace blink { |
| + |
| +class WorkletAnimationBase; |
| + |
| +class CORE_EXPORT WorkletAnimationController |
| + : public GarbageCollectedFinalized<WorkletAnimationController> { |
| + public: |
| + WorkletAnimationController(); |
| + virtual ~WorkletAnimationController(); |
| + |
| + void RegisterAnimation(WorkletAnimationBase*); |
| + 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
|
| + |
| + void Update(); |
| + |
| + DECLARE_TRACE(); |
| + |
| + private: |
| + HeapHashSet<Member<WorkletAnimationBase>> animations_; |
| +}; |
| + |
| +} // namespace blink |
| + |
| +#endif // WorkletAnimationController_h |