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

Unified Diff: third_party/WebKit/Source/platform/animation/CompositorFloatAnimationCurve.cpp

Issue 2080623002: Revert "Remove OwnPtr from Blink." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/CompositorFloatAnimationCurve.cpp
diff --git a/third_party/WebKit/Source/platform/animation/CompositorFloatAnimationCurve.cpp b/third_party/WebKit/Source/platform/animation/CompositorFloatAnimationCurve.cpp
index 5c6a461cf8e889317d2e0c1322dac4abb4212e80..47fd8dac45eca42fe0953c5bd9292641ed9bf3d4 100644
--- a/third_party/WebKit/Source/platform/animation/CompositorFloatAnimationCurve.cpp
+++ b/third_party/WebKit/Source/platform/animation/CompositorFloatAnimationCurve.cpp
@@ -7,8 +7,6 @@
#include "cc/animation/animation_curve.h"
#include "cc/animation/keyframed_animation_curve.h"
#include "cc/animation/timing_function.h"
-#include "wtf/PtrUtil.h"
-#include <memory>
using blink::CompositorFloatKeyframe;
@@ -28,9 +26,9 @@ CompositorFloatAnimationCurve::~CompositorFloatAnimationCurve()
{
}
-std::unique_ptr<CompositorFloatAnimationCurve> CompositorFloatAnimationCurve::CreateForTesting(std::unique_ptr<cc::KeyframedFloatAnimationCurve> curve)
+PassOwnPtr<CompositorFloatAnimationCurve> CompositorFloatAnimationCurve::CreateForTesting(std::unique_ptr<cc::KeyframedFloatAnimationCurve> curve)
{
- return wrapUnique(new CompositorFloatAnimationCurve(std::move(curve)));
+ return adoptPtr(new CompositorFloatAnimationCurve(std::move(curve)));
}
Vector<CompositorFloatKeyframe> CompositorFloatAnimationCurve::keyframesForTesting() const

Powered by Google App Engine
This is Rietveld 408576698