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

Unified Diff: public/platform/WebLayer.h

Issue 23834010: Change WebLayer::addAnimation to transfer ownership of WebAnimation. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Apply GraphicsLayerTest also 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') | no next file » | 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 cedc299addc584a7689a49c7cc5d6f736c3179d8..c2c9fcbb5b7777977b376d98ba33f5687ec33d4c 100644
--- a/public/platform/WebLayer.h
+++ b/public/platform/WebLayer.h
@@ -136,7 +136,11 @@ public:
// deleting the delegate.
virtual void setAnimationDelegate(WebAnimationDelegate*) = 0;
+ // TODO(dshwang): temporary macro to change addAnimation() in both Blink and Chromium.
+#define ANIMATION_OWNERSHIP_TRANSFER
+
// Returns false if the animation cannot be added.
+ // Takes ownership of the WebAnimation object.
virtual bool addAnimation(WebAnimation*) = 0;
// Removes all animations with the given id.
« no previous file with comments | « Source/web/tests/GraphicsLayerTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698