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

Unified Diff: public/platform/WebLayer.h

Issue 23455058: WIP: WebLayer::addAnimation should transfer the ownership of WebAnimation instance. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 3 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: public/platform/WebLayer.h
diff --git a/public/platform/WebLayer.h b/public/platform/WebLayer.h
index dd84083d215b141f253b11a6c574622eb7ab8437..848c5bce9215de3d1ac2837328040327134c4b99 100644
--- a/public/platform/WebLayer.h
+++ b/public/platform/WebLayer.h
@@ -30,6 +30,7 @@
#include "WebColor.h"
#include "WebCommon.h"
#include "WebCompositingReasons.h"
+#include "WebPassOwnPtr.h"
#include "WebPoint.h"
#include "WebRect.h"
#include "WebString.h"
@@ -143,7 +144,7 @@ public:
virtual void setAnimationDelegate(WebAnimationDelegate*) = 0;
// Returns false if the animation cannot be added.
- virtual bool addAnimation(WebAnimation*) = 0;
+ virtual bool addAnimation(WebPassOwnPtr<WebAnimation>) = 0;
// Removes all animations with the given id.
virtual void removeAnimation(int animationId) = 0;

Powered by Google App Engine
This is Rietveld 408576698