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

Side by Side Diff: cc/blink/web_compositor_animation_player_impl.h

Issue 1534813004: Run smooth scroll animations on the compositor when possible (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit Created 5 years 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
« no previous file with comments | « cc/animation/animation_player.cc ('k') | cc/blink/web_compositor_animation_player_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CC_BLINK_WEB_COMPOSITOR_ANIMATION_PLAYER_IMPL_H_ 5 #ifndef CC_BLINK_WEB_COMPOSITOR_ANIMATION_PLAYER_IMPL_H_
6 #define CC_BLINK_WEB_COMPOSITOR_ANIMATION_PLAYER_IMPL_H_ 6 #define CC_BLINK_WEB_COMPOSITOR_ANIMATION_PLAYER_IMPL_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/blink/cc_blink_export.h" 10 #include "cc/blink/cc_blink_export.h"
(...skipping 17 matching lines...) Expand all
28 28
29 // blink::WebCompositorAnimationPlayer implementation 29 // blink::WebCompositorAnimationPlayer implementation
30 void setAnimationDelegate( 30 void setAnimationDelegate(
31 blink::WebCompositorAnimationDelegate* delegate) override; 31 blink::WebCompositorAnimationDelegate* delegate) override;
32 void attachLayer(blink::WebLayer* web_layer) override; 32 void attachLayer(blink::WebLayer* web_layer) override;
33 void detachLayer() override; 33 void detachLayer() override;
34 bool isLayerAttached() const override; 34 bool isLayerAttached() const override;
35 void addAnimation(blink::WebCompositorAnimation* animation) override; 35 void addAnimation(blink::WebCompositorAnimation* animation) override;
36 void removeAnimation(int animation_id) override; 36 void removeAnimation(int animation_id) override;
37 void pauseAnimation(int animation_id, double time_offset) override; 37 void pauseAnimation(int animation_id, double time_offset) override;
38 void abortAnimation(int animation_id) override;
38 39
39 private: 40 private:
40 scoped_refptr<cc::AnimationPlayer> animation_player_; 41 scoped_refptr<cc::AnimationPlayer> animation_player_;
41 scoped_ptr<WebToCCAnimationDelegateAdapter> animation_delegate_adapter_; 42 scoped_ptr<WebToCCAnimationDelegateAdapter> animation_delegate_adapter_;
42 43
43 DISALLOW_COPY_AND_ASSIGN(WebCompositorAnimationPlayerImpl); 44 DISALLOW_COPY_AND_ASSIGN(WebCompositorAnimationPlayerImpl);
44 }; 45 };
45 46
46 } // namespace cc_blink 47 } // namespace cc_blink
47 48
48 #endif // CC_BLINK_WEB_COMPOSITOR_ANIMATION_PLAYER_IMPL_H_ 49 #endif // CC_BLINK_WEB_COMPOSITOR_ANIMATION_PLAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/animation/animation_player.cc ('k') | cc/blink/web_compositor_animation_player_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698