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

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

Issue 881183003: Animation: Cancel same-property animations on compositor (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 11 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: Source/core/animation/AnimationPlayer.h
diff --git a/Source/core/animation/AnimationPlayer.h b/Source/core/animation/AnimationPlayer.h
index aa27c81ee81272afefce2f4e96d983650e4ccec0..d0563a0fd82047826e5b95123afb521a820b3dbb 100644
--- a/Source/core/animation/AnimationPlayer.h
+++ b/Source/core/animation/AnimationPlayer.h
@@ -33,6 +33,7 @@
#include "bindings/core/v8/ScriptPromise.h"
#include "bindings/core/v8/ScriptPromiseProperty.h"
+#include "core/CSSPropertyNames.h"
#include "core/animation/AnimationNode.h"
#include "core/dom/ActiveDOMObject.h"
#include "core/dom/DOMException.h"
@@ -140,11 +141,13 @@ public:
bool canStartAnimationOnCompositor();
bool maybeStartAnimationOnCompositor();
void cancelAnimationOnCompositor();
+ void cancelAffectedAnimationsOnCompositor();
bool hasActiveAnimationsOnCompositor();
void setCompositorPending(bool sourceChanged = false);
void notifyCompositorStartTime(double timelineTime);
void notifyStartTime(double timelineTime);
+ bool affects(CSSPropertyID) const;
dstockwell 2015/01/28 05:44:05 This should have an element for context (conceptua
loyso (OOO) 2015/01/28 06:33:31 Is that possible with current codebase? AnimationP
dstockwell 2015/01/29 01:14:07 No it is not possible currently, but I would like
void preCommit(int compositorGroup, bool startOnCompositor);
void postCommit(double timelineTime);

Powered by Google App Engine
This is Rietveld 408576698