| OLD | NEW |
| 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 #include "platform/animation/CompositorAnimationPlayer.h" | 5 #include "platform/animation/CompositorAnimationPlayer.h" |
| 6 | 6 |
| 7 #include "cc/animation/animation_id_provider.h" | 7 #include "cc/animation/animation_id_provider.h" |
| 8 #include "platform/animation/CompositorAnimation.h" | 8 #include "platform/animation/CompositorAnimation.h" |
| 9 #include "public/platform/WebCompositorAnimationDelegate.h" | 9 #include "public/platform/WebCompositorAnimationDelegate.h" |
| 10 #include "public/platform/WebLayer.h" | 10 #include "public/platform/WebLayer.h" |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 m_animationPlayer->PauseAnimation(animationId, timeOffset); | 63 m_animationPlayer->PauseAnimation(animationId, timeOffset); |
| 64 } | 64 } |
| 65 | 65 |
| 66 void CompositorAnimationPlayer::abortAnimation(int animationId) | 66 void CompositorAnimationPlayer::abortAnimation(int animationId) |
| 67 { | 67 { |
| 68 m_animationPlayer->AbortAnimation(animationId); | 68 m_animationPlayer->AbortAnimation(animationId); |
| 69 } | 69 } |
| 70 | 70 |
| 71 void CompositorAnimationPlayer::NotifyAnimationStarted( | 71 void CompositorAnimationPlayer::NotifyAnimationStarted( |
| 72 base::TimeTicks monotonicTime, | 72 base::TimeTicks monotonicTime, |
| 73 cc::Animation::TargetProperty targetProperty, | 73 cc::TargetProperty::Type targetProperty, |
| 74 int group) | 74 int group) |
| 75 { | 75 { |
| 76 if (m_delegate) | 76 if (m_delegate) |
| 77 m_delegate->notifyAnimationStarted((monotonicTime - base::TimeTicks()).I
nSecondsF(), group); | 77 m_delegate->notifyAnimationStarted((monotonicTime - base::TimeTicks()).I
nSecondsF(), group); |
| 78 } | 78 } |
| 79 | 79 |
| 80 void CompositorAnimationPlayer::NotifyAnimationFinished( | 80 void CompositorAnimationPlayer::NotifyAnimationFinished( |
| 81 base::TimeTicks monotonicTime, | 81 base::TimeTicks monotonicTime, |
| 82 cc::Animation::TargetProperty targetProperty, | 82 cc::TargetProperty::Type targetProperty, |
| 83 int group) | 83 int group) |
| 84 { | 84 { |
| 85 if (m_delegate) | 85 if (m_delegate) |
| 86 m_delegate->notifyAnimationFinished((monotonicTime - base::TimeTicks()).
InSecondsF(), group); | 86 m_delegate->notifyAnimationFinished((monotonicTime - base::TimeTicks()).
InSecondsF(), group); |
| 87 } | 87 } |
| 88 | 88 |
| 89 void CompositorAnimationPlayer::NotifyAnimationAborted( | 89 void CompositorAnimationPlayer::NotifyAnimationAborted( |
| 90 base::TimeTicks monotonicTime, | 90 base::TimeTicks monotonicTime, |
| 91 cc::Animation::TargetProperty targetProperty, | 91 cc::TargetProperty::Type targetProperty, |
| 92 int group) | 92 int group) |
| 93 { | 93 { |
| 94 if (m_delegate) | 94 if (m_delegate) |
| 95 m_delegate->notifyAnimationAborted((monotonicTime - base::TimeTicks()).I
nSecondsF(), group); | 95 m_delegate->notifyAnimationAborted((monotonicTime - base::TimeTicks()).I
nSecondsF(), group); |
| 96 } | 96 } |
| 97 | 97 |
| 98 } // namespace blink | 98 } // namespace blink |
| OLD | NEW |