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 CompositorAnimationHost_h | |
| 6 #define CompositorAnimationHost_h | |
| 7 | |
| 8 #include "base/memory/ref_counted.h" | |
| 9 #include "platform/PlatformExport.h" | |
| 10 #include "wtf/Noncopyable.h" | |
| 11 | |
| 12 #include <memory> | |
| 13 | |
| 14 namespace cc { | |
| 15 class AnimationHost; | |
| 16 struct ScrollOffsetAnimationUpdate; | |
| 17 } | |
| 18 | |
| 19 namespace blink { | |
| 20 | |
| 21 // A compositor representation for cc::AnimationHost. | |
| 22 // This class wraps cc::AnimationHost and is currently only created from | |
| 23 // CompositorAnimationTimeline::compositorAnimationHost. | |
| 24 class PLATFORM_EXPORT CompositorAnimationHost { | |
| 25 public: | |
| 26 CompositorAnimationHost(cc::AnimationHost*); | |
| 27 | |
| 28 cc::AnimationHost* animationHost() const; | |
| 29 | |
| 30 void addImplOnlyScrollOffsetAnimationUpdate(cc::ScrollOffsetAnimationUpdate) ; | |
|
skobes
2016/05/07 00:25:16
Couldn't this just be called updateImplOnlyScrollO
ymalik
2016/05/10 19:40:59
Done.
| |
| 31 | |
| 32 private: | |
| 33 cc::AnimationHost* m_animationHost; | |
| 34 }; | |
| 35 | |
| 36 } // namespace blink | |
| 37 | |
| 38 #endif // CompositorAnimationTimeline_h | |
| OLD | NEW |