| 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 9ea87b7d94178db75d3f5bbe19579caeeb37f9b3..9e475dd48d6f4e93c881d88a68d7b04660418e11 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/DeferredImageDecoder.cpp
|
| +++ b/third_party/WebKit/Source/platform/graphics/DeferredImageDecoder.cpp
|
| @@ -188,12 +188,12 @@ bool DeferredImageDecoder::frameHasAlphaAtIndex(size_t index) const
|
| return true;
|
| }
|
|
|
| -bool DeferredImageDecoder::frameIsCompleteAtIndex(size_t index) const
|
| +bool DeferredImageDecoder::frameIsFullyReceivedAtIndex(size_t index) const
|
| {
|
| if (m_actualDecoder)
|
| - return m_actualDecoder->frameIsCompleteAtIndex(index);
|
| + return m_actualDecoder->frameIsFullyReceivedAtIndex(index);
|
| if (index < m_frameData.size())
|
| - return m_frameData[index].m_isComplete;
|
| + return m_frameData[index].m_isFullyReceived;
|
| return false;
|
| }
|
|
|
| @@ -261,14 +261,14 @@ void DeferredImageDecoder::prepareLazyDecodedFrames()
|
| m_frameData[i].m_haveMetadata = true;
|
| m_frameData[i].m_duration = m_actualDecoder->frameDurationAtIndex(i);
|
| m_frameData[i].m_orientation = m_actualDecoder->orientation();
|
| - m_frameData[i].m_isComplete = m_actualDecoder->frameIsCompleteAtIndex(i);
|
| + m_frameData[i].m_isFullyReceived = m_actualDecoder->frameIsFullyReceivedAtIndex(i);
|
| }
|
|
|
| // The last lazy decoded frame created from previous call might be
|
| // incomplete so update its state.
|
| if (previousSize) {
|
| const size_t lastFrame = previousSize - 1;
|
| - m_frameData[lastFrame].m_isComplete = m_actualDecoder->frameIsCompleteAtIndex(lastFrame);
|
| + m_frameData[lastFrame].m_isFullyReceived = m_actualDecoder->frameIsFullyReceivedAtIndex(lastFrame);
|
| }
|
|
|
| if (m_allDataReceived) {
|
|
|