Chromium Code Reviews| Index: third_party/WebKit/Source/core/animation/WorkletAnimationBase.h |
| diff --git a/third_party/WebKit/Source/core/animation/WorkletAnimationBase.h b/third_party/WebKit/Source/core/animation/WorkletAnimationBase.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..7bd74f1583ba85ecc5ee82071b07bce46bd260df |
| --- /dev/null |
| +++ b/third_party/WebKit/Source/core/animation/WorkletAnimationBase.h |
| @@ -0,0 +1,27 @@ |
| +// 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 WorkletAnimationBase_h |
| +#define WorkletAnimationBase_h |
| + |
| +#include "core/CoreExport.h" |
| +#include "platform/heap/GarbageCollected.h" |
| + |
| +namespace blink { |
| + |
| +class CORE_EXPORT WorkletAnimationBase |
|
alancutter (OOO until 2018)
2017/06/26 11:57:01
No need for this base class, let's not have it.
smcgruer
2017/06/26 21:14:08
I believe it is required; core/ can't depend on mo
alancutter (OOO until 2018)
2017/06/27 00:15:52
Oops, I missed the part where it lives in modules.
|
| + : public GarbageCollectedFinalized<WorkletAnimationBase> { |
| + public: |
| + virtual ~WorkletAnimationBase() {} |
| + |
| + // Attempts to start the animation on the compositor side. Once this has |
| + // returned true, it should not be called again. |
| + virtual bool StartOnCompositor() = 0; |
| + |
| + DEFINE_INLINE_VIRTUAL_TRACE() {} |
| +}; |
| + |
| +} // namespace blink |
| + |
| +#endif // WorkletAnimationBase_h |