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

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: Improve WebPassOwnPtr so that it is hard to make a mistake. Created 7 years, 2 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
« no previous file with comments | « Source/web/tests/GraphicsLayerTest.cpp ('k') | public/platform/WebPassOwnPtr.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebLayer.h
diff --git a/public/platform/WebLayer.h b/public/platform/WebLayer.h
index 67312e0a736324d3ac7fec063647e0efee99d8b1..6721e4948900bb59ba84cfa253af862c1325464b 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"
@@ -137,7 +138,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;
« no previous file with comments | « Source/web/tests/GraphicsLayerTest.cpp ('k') | public/platform/WebPassOwnPtr.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698