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

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

Issue 159733003: Don't run paused animations on the compositor. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add automated test. Created 6 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
« no previous file with comments | « LayoutTests/animations/animation-paused-hardware-expected.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/animation/Player.cpp
diff --git a/Source/core/animation/Player.cpp b/Source/core/animation/Player.cpp
index 2fabdd15e17081e012e6d68c3f6ec7b4b77a7d1c..e8d3ddc697d70c8c00a3ac2434f707f71322ff37 100644
--- a/Source/core/animation/Player.cpp
+++ b/Source/core/animation/Player.cpp
@@ -87,7 +87,7 @@ bool Player::maybeStartAnimationOnCompositor()
// FIXME: Support starting compositor animations that have a fixed
// start time.
ASSERT(!hasStartTime());
- if (!m_content || !m_content->isAnimation())
+ if (!m_content || !m_content->isAnimation() || paused())
return false;
return toAnimation(m_content.get())->maybeStartAnimationOnCompositor();
« no previous file with comments | « LayoutTests/animations/animation-paused-hardware-expected.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698