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

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

Issue 1734063003: Share animations from compositor to main thread. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: worked on review comments 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 #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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 88
89 void CompositorAnimationPlayer::NotifyAnimationAborted( 89 void CompositorAnimationPlayer::NotifyAnimationAborted(
90 base::TimeTicks monotonicTime, 90 base::TimeTicks monotonicTime,
91 cc::TargetProperty::Type 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 void CompositorAnimationPlayer::NotifyAnimationTakeover(
99 base::TimeTicks monotonicTime,
100 cc::TargetProperty::Type,
101 double animationStartTime,
102 scoped_ptr<cc::AnimationCurve> curve)
103 {
104 if (m_delegate) {
105 m_delegate->notifyAnimationTakeover(
106 (monotonicTime - base::TimeTicks()).InSecondsF(),
107 animationStartTime,
108 std::move(curve));
109 }
110 }
111
98 } // namespace blink 112 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698