| Index: Source/core/platform/graphics/chromium/DeferredImageDecoder.h
|
| diff --git a/Source/core/platform/graphics/chromium/DeferredImageDecoder.h b/Source/core/platform/graphics/chromium/DeferredImageDecoder.h
|
| index a20bff7acf5193beccdd01a64d6be2d1e140c080..64d125c5c6e86262648d0f8091e527b91e8b0eab 100644
|
| --- a/Source/core/platform/graphics/chromium/DeferredImageDecoder.h
|
| +++ b/Source/core/platform/graphics/chromium/DeferredImageDecoder.h
|
| @@ -30,7 +30,9 @@
|
| #include "core/platform/graphics/ImageSource.h"
|
| #include "core/platform/graphics/IntSize.h"
|
| #include "core/platform/image-decoders/ImageDecoder.h"
|
| -#include <wtf/Forward.h>
|
| +#include "wtf/Forward.h"
|
| +#include "wtf/OwnPtr.h"
|
| +#include "wtf/Vector.h"
|
|
|
| namespace WebCore {
|
|
|
| @@ -69,7 +71,9 @@ public:
|
|
|
| private:
|
| explicit DeferredImageDecoder(PassOwnPtr<ImageDecoder> actualDecoder);
|
| - SkBitmap createLazyDecodingBitmap();
|
| + void prepareLazyDecodedFrames();
|
| + SkBitmap createLazyDecodingBitmap(size_t index);
|
| + void activateLazyDecoding();
|
| void setData(PassRefPtr<SharedBuffer>, bool allDataReceived);
|
|
|
| RefPtr<SharedBuffer> m_data;
|
| @@ -78,8 +82,9 @@ private:
|
|
|
| IntSize m_size;
|
| ImageOrientation m_orientation;
|
| + int m_repetitionCount;
|
|
|
| - ImageFrame m_lazyDecodedFrame;
|
| + Vector<OwnPtr<ImageFrame> > m_lazyDecodedFrames;
|
| RefPtr<ImageFrameGenerator> m_frameGenerator;
|
|
|
| static bool s_enabled;
|
|
|