| Index: third_party/WebKit/Source/platform/image-decoders/ImageDecoder.h
|
| diff --git a/third_party/WebKit/Source/platform/image-decoders/ImageDecoder.h b/third_party/WebKit/Source/platform/image-decoders/ImageDecoder.h
|
| index 96e6159929067e01cce70e317f64e34bead83d12..15b8df6eb431432e38a9019105e7a1975670deae 100644
|
| --- a/third_party/WebKit/Source/platform/image-decoders/ImageDecoder.h
|
| +++ b/third_party/WebKit/Source/platform/image-decoders/ImageDecoder.h
|
| @@ -396,7 +396,9 @@ class PLATFORM_EXPORT ImageDecoder {
|
| // |index| is smaller than |frame_buffer_cache_|.size().
|
| virtual bool FrameStatusSufficientForSuccessors(size_t index) {
|
| DCHECK(index < frame_buffer_cache_.size());
|
| - return frame_buffer_cache_[index].GetStatus() != ImageFrame::kFrameEmpty;
|
| + ImageFrame::Status frame_status = frame_buffer_cache_[index].GetStatus();
|
| + return frame_status == ImageFrame::kFramePartial ||
|
| + frame_status == ImageFrame::kFrameComplete;
|
| }
|
|
|
| private:
|
|
|