OLD | NEW |
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 Loading... |
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 |
OLD | NEW |