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

Unified Diff: third_party/WebKit/public/platform/WebLayer.h

Issue 1534813004: Run smooth scroll animations on the compositor when possible (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit Created 5 years 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 | « third_party/WebKit/public/platform/WebCompositorAnimationPlayer.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/platform/WebLayer.h
diff --git a/third_party/WebKit/public/platform/WebLayer.h b/third_party/WebKit/public/platform/WebLayer.h
index a0e21b27b97afc4ed9c85eadeeb1d3b8d6999549..6ef2535c64630774d818aaf3fd53fd9e8ec67261 100644
--- a/third_party/WebKit/public/platform/WebLayer.h
+++ b/third_party/WebKit/public/platform/WebLayer.h
@@ -160,6 +160,11 @@ public:
// Pauses all animations with the given id.
virtual void pauseAnimation(int animationId, double timeOffset) = 0;
+ // Aborts all animations with the given id. Different from removeAnimation
+ // in that aborting an animation stops it from affecting both the pending
+ // and active tree.
+ virtual void abortAnimation(int animationId) = 0;
+
// Returns true if this layer has any active animations - useful for tests.
virtual bool hasActiveAnimation() = 0;
« no previous file with comments | « third_party/WebKit/public/platform/WebCompositorAnimationPlayer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698