Chromium Code Reviews| Index: third_party/WebKit/Source/platform/image-decoders/ImageDecoderTestHelpers.cpp |
| diff --git a/third_party/WebKit/Source/platform/image-decoders/ImageDecoderTestHelpers.cpp b/third_party/WebKit/Source/platform/image-decoders/ImageDecoderTestHelpers.cpp |
| index 3c51d4d721e9ce215e416a24110b7697c9c91a37..a374daebdfafe43aa1c79f080ba766da3575e3f2 100644 |
| --- a/third_party/WebKit/Source/platform/image-decoders/ImageDecoderTestHelpers.cpp |
| +++ b/third_party/WebKit/Source/platform/image-decoders/ImageDecoderTestHelpers.cpp |
| @@ -86,7 +86,16 @@ void testByteByByteDecode(DecoderCreator createDecoder, const char* file, size_t |
| if (!decoder->isSizeAvailable()) |
| continue; |
| + bool frameIsFullyReceived = decoder->frameIsFullyReceivedAtIndex(frameCount - 1); |
| ImageFrame* frame = decoder->frameBufferAtIndex(frameCount - 1); |
| + |
| + if (frameIsFullyReceived) |
| + ASSERT_TRUE(decoder->frameIsCompleteAtIndex(frameCount - 1) || decoder->failed()); |
| + |
| + for (size_t i = 0; i < framesDecoded; ++i) { |
|
aleksandar.stojiljkovic
2016/06/06 16:36:38
This is partly addressed in DeferredImageDecoderTe
Peter Kasting
2016/06/10 00:10:02
Is that guaranteed for things like ICO where later
aleksandar.stojiljkovic
2016/06/10 21:51:08
This never happens now after the other CL.
|
| + ASSERT_TRUE(decoder->frameIsFullyReceivedAtIndex(i)); |
| + } |
| + |
| if (frame && frame->getStatus() == ImageFrame::FrameComplete && framesDecoded < frameCount) |
| ++framesDecoded; |
| } |