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

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

Issue 23874019: Web Animations CSS: Start running animations on the compositor (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase and rename hasActiveAnimationOnCompositor to hasActiveAnimationsOnCompositor Created 7 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/KeyframeAnimationEffect.h ('k') | Source/core/animation/Player.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/animation/Player.h
diff --git a/Source/core/animation/Player.h b/Source/core/animation/Player.h
index b4b4d81c1a9e7f2a5efb6657b73e4704984a95f0..0283e7a12f45fc666d33ae4c3518dc98093256ff 100644
--- a/Source/core/animation/Player.h
+++ b/Source/core/animation/Player.h
@@ -75,11 +75,16 @@ public:
// Reflects all pausing, including via pauseForTesting().
bool pausedInternal() const { return !isNull(m_pauseStartTime); }
+ bool maybeStartAnimationOnCompositor();
+ void cancelAnimationOnCompositor();
+
private:
Player(DocumentTimeline&, TimedItem*);
inline double pausedTimeDrift() const;
inline double currentTimeBeforeDrift() const;
+ bool hasActiveAnimationsOnCompositor();
+
void setPausedImpl(bool);
double m_pauseStartTime;
« no previous file with comments | « Source/core/animation/KeyframeAnimationEffect.h ('k') | Source/core/animation/Player.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698