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

Unified 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, 10 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/animation/CompositorAnimationPlayer.cpp
diff --git a/third_party/WebKit/Source/platform/animation/CompositorAnimationPlayer.cpp b/third_party/WebKit/Source/platform/animation/CompositorAnimationPlayer.cpp
index ca747797b459909a5205324f110008f25f038bde..a00f628687fd9d9d3d39032580b3046a1989413f 100644
--- a/third_party/WebKit/Source/platform/animation/CompositorAnimationPlayer.cpp
+++ b/third_party/WebKit/Source/platform/animation/CompositorAnimationPlayer.cpp
@@ -95,4 +95,18 @@ void CompositorAnimationPlayer::NotifyAnimationAborted(
m_delegate->notifyAnimationAborted((monotonicTime - base::TimeTicks()).InSecondsF(), group);
}
+void CompositorAnimationPlayer::NotifyAnimationTakeover(
+ base::TimeTicks monotonicTime,
+ cc::TargetProperty::Type,
+ double animationStartTime,
+ scoped_ptr<cc::AnimationCurve> curve)
+{
+ if (m_delegate) {
+ m_delegate->notifyAnimationTakeover(
+ (monotonicTime - base::TimeTicks()).InSecondsF(),
+ animationStartTime,
+ std::move(curve));
+ }
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698