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

Unified Diff: third_party/WebKit/Source/platform/image-decoders/jpeg/JPEGImageDecoder.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-decoders/jpeg/JPEGImageDecoder.h
diff --git a/third_party/WebKit/Source/platform/image-decoders/jpeg/JPEGImageDecoder.h b/third_party/WebKit/Source/platform/image-decoders/jpeg/JPEGImageDecoder.h
index 0dc93f1a5dcad58a6440307fac269e94a7919d90..845bfcb0d6089ee864819cb0971c6027a7ad1c15 100644
--- a/third_party/WebKit/Source/platform/image-decoders/jpeg/JPEGImageDecoder.h
+++ b/third_party/WebKit/Source/platform/image-decoders/jpeg/JPEGImageDecoder.h
@@ -27,6 +27,7 @@
#define JPEGImageDecoder_h
#include "platform/image-decoders/ImageDecoder.h"
+#include <memory>
namespace blink {
@@ -47,7 +48,7 @@ public:
size_t decodedYUVWidthBytes(int component) const override;
bool canDecodeToYUV() override;
bool decodeToYUV() override;
- void setImagePlanes(PassOwnPtr<ImagePlanes>) override;
+ void setImagePlanes(std::unique_ptr<ImagePlanes>) override;
bool hasImagePlanes() const { return m_imagePlanes.get(); }
bool outputScanlines();
@@ -67,8 +68,8 @@ private:
// data coming, sets the "decode failure" flag.
void decode(bool onlySize);
- OwnPtr<JPEGImageReader> m_reader;
- OwnPtr<ImagePlanes> m_imagePlanes;
+ std::unique_ptr<JPEGImageReader> m_reader;
+ std::unique_ptr<ImagePlanes> m_imagePlanes;
IntSize m_decodedSize;
};

Powered by Google App Engine
This is Rietveld 408576698