| Index: third_party/WebKit/Source/platform/graphics/test/MockImageDecoder.h
|
| diff --git a/third_party/WebKit/Source/platform/graphics/test/MockImageDecoder.h b/third_party/WebKit/Source/platform/graphics/test/MockImageDecoder.h
|
| index d005fa9d2ddf60742bb7252becc5dccec4c41cb6..3c483032a649e21d817a3c35f0dd580d8c74ed64 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/test/MockImageDecoder.h
|
| +++ b/third_party/WebKit/Source/platform/graphics/test/MockImageDecoder.h
|
| @@ -77,9 +77,13 @@ public:
|
| return m_client->repetitionCount();
|
| }
|
|
|
| - bool frameIsCompleteAtIndex(size_t) const override
|
| + bool frameIsFullyReceivedAtIndex(size_t index) const override
|
| {
|
| - return m_client->status() == ImageFrame::FrameComplete;
|
| + // All but the last frame are fully received.
|
| + // For the last frame use bse class implementation.
|
| + if (index < const_cast<MockImageDecoder*>(this)->frameCount() - 1)
|
| + return true;
|
| + return ImageDecoder::frameIsFullyReceivedAtIndex(index);
|
| }
|
|
|
| float frameDurationAtIndex(size_t) const override
|
|
|