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 CompositorAnimationHost_h | |
6 #define CompositorAnimationHost_h | |
7 | |
8 #include "base/memory/ref_counted.h" | |
9 #include "cc/animation/animation_host.h" | |
loyso (OOO)
2016/05/06 01:04:38
You can use forward declaration here as well.
ymalik
2016/05/06 05:41:49
Done.
| |
10 #include "cc/animation/scroll_offset_animations.h" | |
11 #include "platform/PlatformExport.h" | |
12 #include "wtf/Noncopyable.h" | |
13 | |
14 #include <memory> | |
15 | |
16 namespace blink { | |
17 | |
18 // A compositor representation for cc::AnimationHost. | |
19 // This class wraps cc::AnimationHost and is currently only created from | |
20 // CompositorAnimationTimeline::compositorAnimationHost. | |
21 class PLATFORM_EXPORT CompositorAnimationHost { | |
22 WTF_MAKE_NONCOPYABLE(CompositorAnimationHost); | |
23 public: | |
24 CompositorAnimationHost(cc::AnimationHost*); | |
25 virtual ~CompositorAnimationHost(); | |
26 | |
27 cc::AnimationHost* animationHost() const; | |
28 | |
29 void addImplOnlyScrollOffsetAnimationUpdate(cc::ScrollOffsetAnimationUpdate) ; | |
30 | |
31 private: | |
32 cc::AnimationHost* m_animationHost; | |
33 }; | |
34 | |
35 } // namespace blink | |
36 | |
37 #endif // CompositorAnimationTimeline_h | |
OLD | NEW |