| Index: third_party/WebKit/Source/platform/image-decoders/jpeg/JPEGImageDecoder.cpp
|
| diff --git a/third_party/WebKit/Source/platform/image-decoders/jpeg/JPEGImageDecoder.cpp b/third_party/WebKit/Source/platform/image-decoders/jpeg/JPEGImageDecoder.cpp
|
| index 95bb9acdc865b99a90f721ad01681aa1a9f36196..63827d47422ff0c17e4a010c501df144a1e88704 100644
|
| --- a/third_party/WebKit/Source/platform/image-decoders/jpeg/JPEGImageDecoder.cpp
|
| +++ b/third_party/WebKit/Source/platform/image-decoders/jpeg/JPEGImageDecoder.cpp
|
| @@ -39,7 +39,9 @@
|
|
|
| #include "platform/Histogram.h"
|
| #include "platform/PlatformInstrumentation.h"
|
| +#include "wtf/PtrUtil.h"
|
| #include "wtf/Threading.h"
|
| +#include <memory>
|
|
|
| extern "C" {
|
| #include <stdio.h> // jpeglib.h needs stdio FILE.
|
| @@ -793,7 +795,7 @@ bool JPEGImageDecoder::decodeToYUV()
|
| return !failed();
|
| }
|
|
|
| -void JPEGImageDecoder::setImagePlanes(PassOwnPtr<ImagePlanes> imagePlanes)
|
| +void JPEGImageDecoder::setImagePlanes(std::unique_ptr<ImagePlanes> imagePlanes)
|
| {
|
| m_imagePlanes = std::move(imagePlanes);
|
| }
|
| @@ -988,7 +990,7 @@ void JPEGImageDecoder::decode(bool onlySize)
|
| return;
|
|
|
| if (!m_reader) {
|
| - m_reader = adoptPtr(new JPEGImageReader(this));
|
| + m_reader = wrapUnique(new JPEGImageReader(this));
|
| m_reader->setData(m_data.get());
|
| }
|
|
|
|
|