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

Unified Diff: third_party/WebKit/Source/platform/image-encoders/PNGImageEncoder.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/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; }

Powered by Google App Engine
This is Rietveld 408576698