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

Unified Diff: third_party/WebKit/Source/platform/animation/CompositorTransformOperations.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/animation/CompositorTransformOperations.h
diff --git a/third_party/WebKit/Source/platform/animation/CompositorTransformOperations.h b/third_party/WebKit/Source/platform/animation/CompositorTransformOperations.h
index 418a3a95de96318c33504fd9c24aa950c90846a4..6bf525411266e68191cd8f10a5042356353634bc 100644
--- a/third_party/WebKit/Source/platform/animation/CompositorTransformOperations.h
+++ b/third_party/WebKit/Source/platform/animation/CompositorTransformOperations.h
@@ -8,7 +8,8 @@
#include "cc/animation/transform_operations.h"
#include "platform/PlatformExport.h"
#include "wtf/Noncopyable.h"
-#include "wtf/PassOwnPtr.h"
+#include "wtf/PtrUtil.h"
+#include <memory>
class SkMatrix44;
@@ -17,9 +18,9 @@ namespace blink {
class PLATFORM_EXPORT CompositorTransformOperations {
WTF_MAKE_NONCOPYABLE(CompositorTransformOperations);
public:
- static PassOwnPtr<CompositorTransformOperations> create()
+ static std::unique_ptr<CompositorTransformOperations> create()
{
- return adoptPtr(new CompositorTransformOperations());
+ return wrapUnique(new CompositorTransformOperations());
}
const cc::TransformOperations& asTransformOperations() const;

Powered by Google App Engine
This is Rietveld 408576698