Chromium Code Reviews| 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 CompositorMutationAnimations_h | |
| 6 #define CompositorMutationAnimations_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 CompositorMutationAnimations final { | |
| 18 DISALLOW_NEW(); | |
| 19 WTF_MAKE_NONCOPYABLE(CompositorMutationAnimations); | |
| 20 | |
|
esprehn
2016/02/17 01:32:36
remove nl
majidvp
2016/02/22 17:59:48
Done.
| |
| 21 public: | |
| 22 CompositorMutationAnimations() {} | |
| 23 void applyUpdate(Element&, const CompositorMutation&); | |
| 24 | |
| 25 DEFINE_INLINE_TRACE() | |
| 26 { | |
| 27 visitor->trace(m_opacityAnimation); | |
| 28 visitor->trace(m_transformAnimation); | |
| 29 } | |
| 30 | |
| 31 private: | |
| 32 // We only need two animations at the moment but if that grows we should | |
| 33 // use a map instead of individual members. | |
|
esprehn
2016/02/17 01:32:36
Why not use a single animation?
majidvp
2016/02/22 17:59:48
Done.
| |
| 34 Member<Animation> m_opacityAnimation; | |
| 35 Member<Animation> m_transformAnimation; | |
| 36 }; | |
| 37 | |
| 38 } // namespace blink | |
| 39 | |
| 40 #endif | |
| OLD | NEW |