Index: third_party/WebKit/Source/platform/graphics/PictureSnapshot.cpp |
diff --git a/third_party/WebKit/Source/platform/graphics/PictureSnapshot.cpp b/third_party/WebKit/Source/platform/graphics/PictureSnapshot.cpp |
index 8cc9f53a6929b0de30319d55d54a03e4150d3c39..cdf740b2784d59b9517c74e35652de7ef4f8c156 100644 |
--- a/third_party/WebKit/Source/platform/graphics/PictureSnapshot.cpp |
+++ b/third_party/WebKit/Source/platform/graphics/PictureSnapshot.cpp |
@@ -60,7 +60,7 @@ PictureSnapshot::PictureSnapshot(PassRefPtr<const SkPicture> picture) |
static bool decodeBitmap(const void* data, size_t length, SkBitmap* result) |
{ |
- std::unique_ptr<ImageDecoder> imageDecoder = ImageDecoder::create(static_cast<const char*>(data), length, |
+ std::unique_ptr<ImageDecoder> imageDecoder = ImageDecoder::create(ImageDecoder::determineImageType(static_cast<const char*>(data), length), |
ImageDecoder::AlphaPremultiplied, ImageDecoder::GammaAndColorProfileIgnored); |
if (!imageDecoder) |
return false; |