Index: third_party/WebKit/Source/platform/graphics/DeferredImageDecoderTestWoPlatform.cpp |
diff --git a/third_party/WebKit/Source/platform/graphics/DeferredImageDecoderTestWoPlatform.cpp b/third_party/WebKit/Source/platform/graphics/DeferredImageDecoderTestWoPlatform.cpp |
index 80bf2501d316de7d7584ea0795125992ecfff902..10887c1afbe5e759442f14486dbaebff67ab1e44 100644 |
--- a/third_party/WebKit/Source/platform/graphics/DeferredImageDecoderTestWoPlatform.cpp |
+++ b/third_party/WebKit/Source/platform/graphics/DeferredImageDecoderTestWoPlatform.cpp |
@@ -35,7 +35,7 @@ static void mixImages(const char* fileName, size_t bytesForFirstFrame, size_t la |
RefPtr<SharedBuffer> file = readFile(fileName); |
ASSERT_NE(file, nullptr); |
- std::unique_ptr<DeferredImageDecoder> decoder = DeferredImageDecoder::create(*file.get(), ImageDecoder::AlphaPremultiplied, ImageDecoder::GammaAndColorProfileIgnored); |
+ std::unique_ptr<DeferredImageDecoder> decoder = DeferredImageDecoder::create(ImageDecoder::determineImageType(*file.get()), ImageDecoder::AlphaPremultiplied, ImageDecoder::GammaAndColorProfileIgnored); |
ASSERT_TRUE(decoder.get()); |
RefPtr<SharedBuffer> partialFile = SharedBuffer::create(file->data(), bytesForFirstFrame); |