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 CompositorAnimationTimeline_h |
| 6 #define CompositorAnimationTimeline_h |
| 7 |
| 8 #include "base/memory/ref_counted.h" |
| 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "cc/animation/animation_timeline.h" |
| 11 #include "platform/PlatformExport.h" |
| 12 #include "wtf/Noncopyable.h" |
| 13 |
| 14 namespace blink { |
| 15 |
| 16 class CompositorAnimationPlayerClient; |
| 17 |
| 18 // A compositor representation for timeline. |
| 19 class PLATFORM_EXPORT CompositorAnimationTimeline { |
| 20 WTF_MAKE_NONCOPYABLE(CompositorAnimationTimeline); |
| 21 public: |
| 22 CompositorAnimationTimeline(); |
| 23 virtual ~CompositorAnimationTimeline(); |
| 24 |
| 25 cc::AnimationTimeline* animationTimeline() const; |
| 26 |
| 27 virtual void playerAttached(const CompositorAnimationPlayerClient&); |
| 28 virtual void playerDestroyed(const CompositorAnimationPlayerClient&); |
| 29 |
| 30 private: |
| 31 scoped_refptr<cc::AnimationTimeline> m_animationTimeline; |
| 32 }; |
| 33 |
| 34 } // namespace blink |
| 35 |
| 36 #endif // CompositorAnimationTimeline_h |
OLD | NEW |