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

Unified Diff: third_party/WebKit/Source/platform/animation/CompositorTransformAnimationCurve.h

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/CompositorTransformAnimationCurve.h
diff --git a/third_party/WebKit/Source/platform/animation/CompositorTransformAnimationCurve.h b/third_party/WebKit/Source/platform/animation/CompositorTransformAnimationCurve.h
index 1b882e310dd171097bccdd5c15e11423a6113130..fcab8567bd64eeb4d5b81b8497af0585465e023d 100644
--- a/third_party/WebKit/Source/platform/animation/CompositorTransformAnimationCurve.h
+++ b/third_party/WebKit/Source/platform/animation/CompositorTransformAnimationCurve.h
@@ -10,8 +10,7 @@
#include "platform/animation/CompositorTransformKeyframe.h"
#include "platform/animation/TimingFunction.h"
#include "wtf/Noncopyable.h"
-#include "wtf/PtrUtil.h"
-#include <memory>
+#include "wtf/PassOwnPtr.h"
namespace cc {
class KeyframedTransformAnimationCurve;
@@ -27,9 +26,9 @@ namespace blink {
class PLATFORM_EXPORT CompositorTransformAnimationCurve : public CompositorAnimationCurve {
WTF_MAKE_NONCOPYABLE(CompositorTransformAnimationCurve);
public:
- static std::unique_ptr<CompositorTransformAnimationCurve> create()
+ static PassOwnPtr<CompositorTransformAnimationCurve> create()
{
- return wrapUnique(new CompositorTransformAnimationCurve());
+ return adoptPtr(new CompositorTransformAnimationCurve());
}
~CompositorTransformAnimationCurve() override;

Powered by Google App Engine
This is Rietveld 408576698