Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(732)

Unified Diff: Source/core/platform/graphics/chromium/DeferredImageDecoder.h

Issue 17999003: Deferred image decoding to support animated GIFs (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: done Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/TestExpectations ('k') | Source/core/platform/graphics/chromium/DeferredImageDecoder.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « LayoutTests/TestExpectations ('k') | Source/core/platform/graphics/chromium/DeferredImageDecoder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698