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

Unified Diff: third_party/WebKit/Source/core/animation/UnderlyingValueOwner.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/UnderlyingValueOwner.h
diff --git a/third_party/WebKit/Source/core/animation/UnderlyingValueOwner.h b/third_party/WebKit/Source/core/animation/UnderlyingValueOwner.h
index 5644eb8aeede26ae5301dcffe8a5c60c95e08e1f..ddd115e980ee97ce61171caa78107974357eee56 100644
--- a/third_party/WebKit/Source/core/animation/UnderlyingValueOwner.h
+++ b/third_party/WebKit/Source/core/animation/UnderlyingValueOwner.h
@@ -8,12 +8,13 @@
#include "core/animation/TypedInterpolationValue.h"
#include "wtf/Allocator.h"
#include "wtf/Noncopyable.h"
+#include <memory>
namespace blink {
// Handles memory management of underlying InterpolationValues in applyStack()
// Ensures we perform copy on write if we are not the owner of an underlying InterpolationValue.
-// This functions similar to a DataRef except on OwnPtr'd objects.
+// This functions similar to a DataRef except on std::unique_ptr'd objects.
class UnderlyingValueOwner {
WTF_MAKE_NONCOPYABLE(UnderlyingValueOwner);
STACK_ALLOCATED();
@@ -42,7 +43,7 @@ public:
void set(std::nullptr_t);
void set(const InterpolationType&, const InterpolationValue&);
void set(const InterpolationType&, InterpolationValue&&);
- void set(PassOwnPtr<TypedInterpolationValue>);
+ void set(std::unique_ptr<TypedInterpolationValue>);
void set(const TypedInterpolationValue*);
InterpolationValue& mutableValue();

Powered by Google App Engine
This is Rietveld 408576698