| 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 a9621b5a1058f9cd5e2404cb48dfd82615ab593d..3fe6795624ab2077550f62a909020da1b39a2c93 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/DeferredImageDecoder.cpp
|
| +++ b/third_party/WebKit/Source/platform/graphics/DeferredImageDecoder.cpp
|
| @@ -123,6 +123,14 @@ bool DeferredImageDecoder::hasColorProfile() const
|
| return m_actualDecoder ? m_actualDecoder->hasColorProfile() : m_hasColorProfile;
|
| }
|
|
|
| +PassRefPtr<ColorSpaceProfile> DeferredImageDecoder::colorProfile() const
|
| +{
|
| + if (m_actualDecoder)
|
| + return m_actualDecoder->colorProfile();
|
| +
|
| + return m_colorProfile;
|
| +}
|
| +
|
| IntSize DeferredImageDecoder::size() const
|
| {
|
| return m_actualDecoder ? m_actualDecoder->size() : m_size;
|
| @@ -211,6 +219,7 @@ void DeferredImageDecoder::activateLazyDecoding()
|
| m_size = m_actualDecoder->size();
|
| m_filenameExtension = m_actualDecoder->filenameExtension();
|
| m_hasColorProfile = m_actualDecoder->hasColorProfile();
|
| + m_colorProfile = m_hasColorProfile ? m_actualDecoder->colorProfile() : nullptr;
|
| const bool isSingleFrame = m_actualDecoder->repetitionCount() == cAnimationNone || (m_allDataReceived && m_actualDecoder->frameCount() == 1u);
|
| m_frameGenerator = ImageFrameGenerator::create(SkISize::Make(m_actualDecoder->decodedSize().width(), m_actualDecoder->decodedSize().height()), m_data, m_allDataReceived, !isSingleFrame);
|
| }
|
|
|