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

Unified Diff: third_party/WebKit/Source/platform/animation/CompositorAnimationPlayer.h

Issue 1973083002: Use element id's for animations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 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: third_party/WebKit/Source/platform/animation/CompositorAnimationPlayer.h
diff --git a/third_party/WebKit/Source/platform/animation/CompositorAnimationPlayer.h b/third_party/WebKit/Source/platform/animation/CompositorAnimationPlayer.h
index 003ae77278a47b2c674941e1eb21eb378fae0b14..399e63aa656ed70c3eed94a601aef386a023e856 100644
--- a/third_party/WebKit/Source/platform/animation/CompositorAnimationPlayer.h
+++ b/third_party/WebKit/Source/platform/animation/CompositorAnimationPlayer.h
@@ -11,6 +11,7 @@
#include "cc/animation/animation_delegate.h"
#include "cc/animation/animation_player.h"
#include "platform/PlatformExport.h"
+#include "platform/graphics/CompositorElementId.h"
#include "wtf/Noncopyable.h"
#include "wtf/PtrUtil.h"
#include <memory>
@@ -40,14 +41,14 @@ public:
// deleting the delegate.
void setAnimationDelegate(CompositorAnimationDelegate*);
- void attachLayer(WebLayer*);
- void detachLayer();
- bool isLayerAttached() const;
+ void attachElement(const CompositorElementId&);
+ void detachElement();
+ bool isElementAttached() const;
void addAnimation(CompositorAnimation*);
- void removeAnimation(int animationId);
- void pauseAnimation(int animationId, double timeOffset);
- void abortAnimation(int animationId);
+ void removeAnimation(uint64_t animationId);
+ void pauseAnimation(uint64_t animationId, double timeOffset);
+ void abortAnimation(uint64_t animationId);
private:
CompositorAnimationPlayer();

Powered by Google App Engine
This is Rietveld 408576698