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

Unified Diff: third_party/WebKit/Source/core/animation/Interpolation.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/core/animation/Interpolation.h
diff --git a/third_party/WebKit/Source/core/animation/Interpolation.h b/third_party/WebKit/Source/core/animation/Interpolation.h
index e613163d26812ceaf4f59e822b3f5a69f10203e4..6131a9858762cd417810491535cad51e68a42610 100644
--- a/third_party/WebKit/Source/core/animation/Interpolation.h
+++ b/third_party/WebKit/Source/core/animation/Interpolation.h
@@ -9,6 +9,7 @@
#include "core/animation/InterpolableValue.h"
#include "wtf/Forward.h"
#include "wtf/RefCounted.h"
+#include <memory>
namespace blink {
@@ -30,14 +31,14 @@ public:
virtual bool dependsOnUnderlyingValue() const { return false; }
protected:
- const OwnPtr<InterpolableValue> m_start;
- const OwnPtr<InterpolableValue> m_end;
+ const std::unique_ptr<InterpolableValue> m_start;
+ const std::unique_ptr<InterpolableValue> m_end;
mutable double m_cachedFraction;
mutable int m_cachedIteration;
- mutable OwnPtr<InterpolableValue> m_cachedValue;
+ mutable std::unique_ptr<InterpolableValue> m_cachedValue;
- Interpolation(PassOwnPtr<InterpolableValue> start, PassOwnPtr<InterpolableValue> end);
+ Interpolation(std::unique_ptr<InterpolableValue> start, std::unique_ptr<InterpolableValue> end);
private:
InterpolableValue* getCachedValueForTesting() const { return m_cachedValue.get(); }

Powered by Google App Engine
This is Rietveld 408576698