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

Unified Diff: third_party/WebKit/Source/platform/scroll/ScrollAnimatorCompositorCoordinator.h

Issue 2050123002: Remove OwnPtr from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: First attempt to land. 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/scroll/ScrollAnimatorCompositorCoordinator.h
diff --git a/third_party/WebKit/Source/platform/scroll/ScrollAnimatorCompositorCoordinator.h b/third_party/WebKit/Source/platform/scroll/ScrollAnimatorCompositorCoordinator.h
index bf111dd4e8ff80e460471c8a7012756c1c366eca..d0cecc2aff2c1d488e4a59013cf1b73154506f8b 100644
--- a/third_party/WebKit/Source/platform/scroll/ScrollAnimatorCompositorCoordinator.h
+++ b/third_party/WebKit/Source/platform/scroll/ScrollAnimatorCompositorCoordinator.h
@@ -16,7 +16,7 @@
#include "platform/scroll/ScrollTypes.h"
#include "wtf/Allocator.h"
#include "wtf/Noncopyable.h"
-#include "wtf/OwnPtr.h"
+#include <memory>
namespace blink {
@@ -63,7 +63,7 @@ protected:
IntSize implOnlyAnimationAdjustmentForTesting() { return m_implOnlyAnimationAdjustment; }
void resetAnimationIds();
- bool addAnimation(PassOwnPtr<CompositorAnimation>);
+ bool addAnimation(std::unique_ptr<CompositorAnimation>);
void removeAnimation();
virtual void abortAnimation();
@@ -139,7 +139,7 @@ protected:
RunningOnCompositorButNeedsAdjustment,
};
- OwnPtr<CompositorAnimationPlayer> m_compositorPlayer;
+ std::unique_ptr<CompositorAnimationPlayer> m_compositorPlayer;
int m_compositorAnimationAttachedToLayerId;
RunState m_runState;
int m_compositorAnimationId;

Powered by Google App Engine
This is Rietveld 408576698