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

Unified Diff: Source/core/animation/AnimationTimeline.cpp

Issue 722203004: Animations: Disable compositor when timeline playback rate is set (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix oilpan build Created 6 years, 1 month 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
« no previous file with comments | « Source/core/animation/AnimationPlayer.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/animation/AnimationTimeline.cpp
diff --git a/Source/core/animation/AnimationTimeline.cpp b/Source/core/animation/AnimationTimeline.cpp
index 643a29e0c26a01abc53642435d015adc5d1c6f4a..87b6382d274597b98522ccbb3d7b6c5209bb4779 100644
--- a/Source/core/animation/AnimationTimeline.cpp
+++ b/Source/core/animation/AnimationTimeline.cpp
@@ -236,10 +236,12 @@ void AnimationTimeline::setOutdatedAnimationPlayer(AnimationPlayer* player)
void AnimationTimeline::setPlaybackRate(double playbackRate)
{
- // FIXME: need to invalidate compositor animations
m_currentTimeSnapshot = currentTimeInternal();
m_rawCurrentTimeSnapshot = m_document->animationClock().currentTime() - zeroTime();
m_playbackRate = playbackRate;
+ for (const auto& player : m_players) {
+ player->setCompositorPending(true);
+ }
}
double AnimationTimeline::playbackRate() const
« no previous file with comments | « Source/core/animation/AnimationPlayer.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698