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

Unified Diff: third_party/WebKit/Source/platform/graphics/GraphicsLayerTest.cpp

Issue 2338803003: Blink Compositor Animation: CompositorPlayer::addAnimation to use unique_ptr. (Closed)
Patch Set: Created 4 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: third_party/WebKit/Source/platform/graphics/GraphicsLayerTest.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/GraphicsLayerTest.cpp b/third_party/WebKit/Source/platform/graphics/GraphicsLayerTest.cpp
index 76e307f5ed4d9ce1c6f87c3460bc3982c62fe0c5..1102e69c95dfcf9e9810c90705cef1abae10e4ad 100644
--- a/third_party/WebKit/Source/platform/graphics/GraphicsLayerTest.cpp
+++ b/third_party/WebKit/Source/platform/graphics/GraphicsLayerTest.cpp
@@ -123,7 +123,7 @@ TEST_F(GraphicsLayerTest, updateLayerShouldFlattenTransformWithAnimations)
player.compositorPlayer()->attachElement(m_platformLayer->elementId());
ASSERT_TRUE(player.compositorPlayer()->isElementAttached());
- player.compositorPlayer()->addAnimation(floatAnimation.release());
+ player.compositorPlayer()->addAnimation(std::move(floatAnimation));
ASSERT_TRUE(m_platformLayer->hasActiveAnimationForTesting());

Powered by Google App Engine
This is Rietveld 408576698