Index: third_party/WebKit/Source/platform/image-encoders/PNGImageEncoder.h |
diff --git a/third_party/WebKit/Source/platform/image-encoders/PNGImageEncoder.h b/third_party/WebKit/Source/platform/image-encoders/PNGImageEncoder.h |
index 79f7960ec5eff8ec7010102e134b328713756806..a825c661adb3d0aaff05bedcaaa4019c77443ce8 100644 |
--- a/third_party/WebKit/Source/platform/image-encoders/PNGImageEncoder.h |
+++ b/third_party/WebKit/Source/platform/image-encoders/PNGImageEncoder.h |
@@ -36,8 +36,8 @@ extern "C" { |
#include "png.h" |
} |
#include "wtf/Allocator.h" |
-#include "wtf/PassOwnPtr.h" |
#include "wtf/Vector.h" |
+#include <memory> |
namespace blink { |
@@ -47,7 +47,7 @@ class PLATFORM_EXPORT PNGImageEncoderState final { |
USING_FAST_MALLOC(PNGImageEncoderState); |
WTF_MAKE_NONCOPYABLE(PNGImageEncoderState); |
public: |
- static PassOwnPtr<PNGImageEncoderState> create(const IntSize& imageSize, Vector<unsigned char>* output); |
+ static std::unique_ptr<PNGImageEncoderState> create(const IntSize& imageSize, Vector<unsigned char>* output); |
~PNGImageEncoderState(); |
png_struct* png() { ASSERT(m_png); return m_png; } |
png_info* info() { ASSERT(m_info); return m_info; } |