| Index: third_party/WebKit/Source/platform/graphics/DeferredImageDecoder.cpp
|
| diff --git a/third_party/WebKit/Source/platform/graphics/DeferredImageDecoder.cpp b/third_party/WebKit/Source/platform/graphics/DeferredImageDecoder.cpp
|
| index 62529643b6be1c9b5f514da7ddc461abe057fa29..9d02c2ba9d852d45abc702d474fe889956afaa32 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/DeferredImageDecoder.cpp
|
| +++ b/third_party/WebKit/Source/platform/graphics/DeferredImageDecoder.cpp
|
| @@ -125,7 +125,7 @@ sk_sp<SkImage> DeferredImageDecoder::createFrameAtIndex(size_t index)
|
| if (!frame || frame->getStatus() == ImageFrame::FrameEmpty)
|
| return nullptr;
|
|
|
| - return SkImage::MakeFromBitmap(frame->bitmap());
|
| + return (frame->getStatus() == ImageFrame::FrameComplete) ? frame->finalizePixelsAndGetImage() : SkImage::MakeFromBitmap(frame->bitmap());
|
| }
|
|
|
| PassRefPtr<SharedBuffer> DeferredImageDecoder::data()
|
|
|