Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(285)

Side by Side Diff: third_party/WebKit/Source/platform/animation/CompositorAnimationHost.h

Issue 1950243005: Communicate MT changes to impl-only scroll offset animations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698