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

Unified Diff: third_party/WebKit/Source/core/animation/InvalidatableInterpolation.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/InvalidatableInterpolation.h
diff --git a/third_party/WebKit/Source/core/animation/InvalidatableInterpolation.h b/third_party/WebKit/Source/core/animation/InvalidatableInterpolation.h
index fd977dd3594b772cf0cc2141d9425f7f488a4fce..7292583645617df2fe56bb96376baa2081139fec 100644
--- a/third_party/WebKit/Source/core/animation/InvalidatableInterpolation.h
+++ b/third_party/WebKit/Source/core/animation/InvalidatableInterpolation.h
@@ -10,6 +10,7 @@
#include "core/animation/PropertyInterpolationTypesMapping.h"
#include "core/animation/StyleInterpolation.h"
#include "core/animation/TypedInterpolationValue.h"
+#include <memory>
namespace blink {
@@ -51,13 +52,13 @@ private:
using ConversionCheckers = InterpolationType::ConversionCheckers;
- PassOwnPtr<TypedInterpolationValue> maybeConvertUnderlyingValue(const InterpolationEnvironment&) const;
+ std::unique_ptr<TypedInterpolationValue> maybeConvertUnderlyingValue(const InterpolationEnvironment&) const;
const TypedInterpolationValue* ensureValidInterpolation(const InterpolationEnvironment&, const UnderlyingValueOwner&) const;
void clearCache() const;
bool isCacheValid(const InterpolationEnvironment&, const UnderlyingValueOwner&) const;
bool isNeutralKeyframeActive() const;
- PassOwnPtr<PairwisePrimitiveInterpolation> maybeConvertPairwise(const InterpolationEnvironment&, const UnderlyingValueOwner&) const;
- PassOwnPtr<TypedInterpolationValue> convertSingleKeyframe(const PropertySpecificKeyframe&, const InterpolationEnvironment&, const UnderlyingValueOwner&) const;
+ std::unique_ptr<PairwisePrimitiveInterpolation> maybeConvertPairwise(const InterpolationEnvironment&, const UnderlyingValueOwner&) const;
+ std::unique_ptr<TypedInterpolationValue> convertSingleKeyframe(const PropertySpecificKeyframe&, const InterpolationEnvironment&, const UnderlyingValueOwner&) const;
void addConversionCheckers(const InterpolationType&, ConversionCheckers&) const;
void setFlagIfInheritUsed(InterpolationEnvironment&) const;
double underlyingFraction() const;
@@ -68,9 +69,9 @@ private:
RefPtr<PropertySpecificKeyframe> m_endKeyframe;
double m_currentFraction;
mutable bool m_isCached;
- mutable OwnPtr<PrimitiveInterpolation> m_cachedPairConversion;
+ mutable std::unique_ptr<PrimitiveInterpolation> m_cachedPairConversion;
mutable ConversionCheckers m_conversionCheckers;
- mutable OwnPtr<TypedInterpolationValue> m_cachedValue;
+ mutable std::unique_ptr<TypedInterpolationValue> m_cachedValue;
};
DEFINE_TYPE_CASTS(InvalidatableInterpolation, Interpolation, value, value->isInvalidatableInterpolation(), value.isInvalidatableInterpolation());

Powered by Google App Engine
This is Rietveld 408576698