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

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

Issue 1734063003: Share animations from compositor to main thread. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix win trybot failure Created 4 years, 9 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
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CompositorAnimationPlayer_h 5 #ifndef CompositorAnimationPlayer_h
6 #define CompositorAnimationPlayer_h 6 #define CompositorAnimationPlayer_h
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "cc/animation/animation.h" 10 #include "cc/animation/animation.h"
11 #include "cc/animation/animation_curve.h"
11 #include "cc/animation/animation_delegate.h" 12 #include "cc/animation/animation_delegate.h"
12 #include "cc/animation/animation_player.h" 13 #include "cc/animation/animation_player.h"
13 #include "platform/PlatformExport.h" 14 #include "platform/PlatformExport.h"
14 #include "wtf/Noncopyable.h" 15 #include "wtf/Noncopyable.h"
15 16
16 namespace blink { 17 namespace blink {
17 18
18 class CompositorAnimation; 19 class CompositorAnimation;
19 class WebCompositorAnimationDelegate; 20 class WebCompositorAnimationDelegate;
20 class WebLayer; 21 class WebLayer;
(...skipping 20 matching lines...) Expand all
41 void addAnimation(CompositorAnimation*); 42 void addAnimation(CompositorAnimation*);
42 void removeAnimation(int animationId); 43 void removeAnimation(int animationId);
43 void pauseAnimation(int animationId, double timeOffset); 44 void pauseAnimation(int animationId, double timeOffset);
44 void abortAnimation(int animationId); 45 void abortAnimation(int animationId);
45 46
46 private: 47 private:
47 // cc::AnimationDelegate implementation. 48 // cc::AnimationDelegate implementation.
48 void NotifyAnimationStarted(base::TimeTicks monotonicTime, cc::TargetPropert y::Type, int group) override; 49 void NotifyAnimationStarted(base::TimeTicks monotonicTime, cc::TargetPropert y::Type, int group) override;
49 void NotifyAnimationFinished(base::TimeTicks monotonicTime, cc::TargetProper ty::Type, int group) override; 50 void NotifyAnimationFinished(base::TimeTicks monotonicTime, cc::TargetProper ty::Type, int group) override;
50 void NotifyAnimationAborted(base::TimeTicks monotonicTime, cc::TargetPropert y::Type, int group) override; 51 void NotifyAnimationAborted(base::TimeTicks monotonicTime, cc::TargetPropert y::Type, int group) override;
52 void NotifyAnimationTakeover(base::TimeTicks monotonicTime, cc::TargetProper ty::Type, double animationStartTime, scoped_ptr<cc::AnimationCurve>) override;
51 53
52 scoped_refptr<cc::AnimationPlayer> m_animationPlayer; 54 scoped_refptr<cc::AnimationPlayer> m_animationPlayer;
53 WebCompositorAnimationDelegate* m_delegate; 55 WebCompositorAnimationDelegate* m_delegate;
54 }; 56 };
55 57
56 } // namespace blink 58 } // namespace blink
57 59
58 #endif // CompositorAnimationPlayer_h 60 #endif // CompositorAnimationPlayer_h
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_impl.cc ('k') | third_party/WebKit/Source/platform/animation/CompositorAnimationPlayer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698