Index: third_party/WebKit/Source/platform/graphics/DecodingImageGenerator.cpp |
diff --git a/third_party/WebKit/Source/platform/graphics/DecodingImageGenerator.cpp b/third_party/WebKit/Source/platform/graphics/DecodingImageGenerator.cpp |
index b7f8c459998edffdcb5a6100df03c8abf61aa74c..160ecd439c10e0ffc56a7cbc3f685abdacd469c0 100644 |
--- a/third_party/WebKit/Source/platform/graphics/DecodingImageGenerator.cpp |
+++ b/third_party/WebKit/Source/platform/graphics/DecodingImageGenerator.cpp |
@@ -32,6 +32,7 @@ |
#include "platform/image-decoders/ImageDecoder.h" |
#include "platform/image-decoders/SegmentReader.h" |
#include "third_party/skia/include/core/SkData.h" |
+#include <memory> |
namespace blink { |
@@ -109,7 +110,7 @@ SkImageGenerator* DecodingImageGenerator::create(SkData* data) |
{ |
// We just need the size of the image, so we have to temporarily create an ImageDecoder. Since |
// we only need the size, it doesn't really matter about premul or not, or gamma settings. |
- OwnPtr<ImageDecoder> decoder = ImageDecoder::create(static_cast<const char*>(data->data()), data->size(), |
+ std::unique_ptr<ImageDecoder> decoder = ImageDecoder::create(static_cast<const char*>(data->data()), data->size(), |
ImageDecoder::AlphaPremultiplied, ImageDecoder::GammaAndColorProfileApplied); |
if (!decoder) |
return 0; |