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

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

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/blink/web_compositor_animation_player_impl.h ('k') | cc/blink/web_layer_impl.h » ('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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #include "cc/blink/web_compositor_animation_player_impl.h" 5 #include "cc/blink/web_compositor_animation_player_impl.h"
6 6
7 #include "cc/animation/animation_id_provider.h" 7 #include "cc/animation/animation_id_provider.h"
8 #include "cc/animation/animation_player.h" 8 #include "cc/animation/animation_player.h"
9 #include "cc/blink/web_animation_impl.h" 9 #include "cc/blink/web_animation_impl.h"
10 #include "cc/blink/web_to_cc_animation_delegate_adapter.h" 10 #include "cc/blink/web_to_cc_animation_delegate_adapter.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 56
57 void WebCompositorAnimationPlayerImpl::removeAnimation(int animation_id) { 57 void WebCompositorAnimationPlayerImpl::removeAnimation(int animation_id) {
58 animation_player_->RemoveAnimation(animation_id); 58 animation_player_->RemoveAnimation(animation_id);
59 } 59 }
60 60
61 void WebCompositorAnimationPlayerImpl::pauseAnimation(int animation_id, 61 void WebCompositorAnimationPlayerImpl::pauseAnimation(int animation_id,
62 double time_offset) { 62 double time_offset) {
63 animation_player_->PauseAnimation(animation_id, time_offset); 63 animation_player_->PauseAnimation(animation_id, time_offset);
64 } 64 }
65 65
66 void WebCompositorAnimationPlayerImpl::abortAnimation(int animation_id) {
67 animation_player_->AbortAnimation(animation_id);
68 }
69
66 } // namespace cc_blink 70 } // namespace cc_blink
OLDNEW
« no previous file with comments | « cc/blink/web_compositor_animation_player_impl.h ('k') | cc/blink/web_layer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698