OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 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 CustomCompositorAnimations_h |
| 6 #define CustomCompositorAnimations_h |
| 7 |
| 8 #include "core/animation/Animation.h" |
| 9 #include "platform/heap/Handle.h" |
| 10 #include "wtf/Noncopyable.h" |
| 11 |
| 12 namespace blink { |
| 13 |
| 14 class Element; |
| 15 class CompositorMutation; |
| 16 |
| 17 class CustomCompositorAnimations final { |
| 18 DISALLOW_NEW(); |
| 19 WTF_MAKE_NONCOPYABLE(CustomCompositorAnimations); |
| 20 |
| 21 public: |
| 22 CustomCompositorAnimations() {} |
| 23 void applyUpdate(Element&, const CompositorMutation&); |
| 24 |
| 25 DEFINE_INLINE_TRACE() |
| 26 { |
| 27 visitor->trace(m_animation); |
| 28 } |
| 29 |
| 30 private: |
| 31 Member<Animation> m_animation; |
| 32 }; |
| 33 |
| 34 } // namespace blink |
| 35 |
| 36 #endif |
OLD | NEW |