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 WorkletAnimationBase_h | |
| 6 #define WorkletAnimationBase_h | |
| 7 | |
| 8 #include "core/CoreExport.h" | |
| 9 #include "platform/heap/GarbageCollected.h" | |
| 10 | |
| 11 namespace blink { | |
| 12 | |
| 13 class CORE_EXPORT WorkletAnimationBase | |
| 14 : public GarbageCollectedFinalized<WorkletAnimationBase> { | |
| 15 public: | |
| 16 virtual ~WorkletAnimationBase() {} | |
| 17 | |
| 18 // Attempts to start the animation on the compositor side. Once this has | |
| 19 // returned true, it should not be called again. | |
|
flackr
2017/09/07 15:59:13
It's a bit of a strange interface, it might be wor
smcgruer
2017/09/11 18:18:59
Changed the comment to better reflect reality.
| |
| 20 virtual bool StartOnCompositor() = 0; | |
| 21 | |
| 22 DEFINE_INLINE_VIRTUAL_TRACE() {} | |
| 23 }; | |
| 24 | |
| 25 } // namespace blink | |
| 26 | |
| 27 #endif // WorkletAnimationBase_h | |
| OLD | NEW |