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

Unified Diff: Source/core/platform/graphics/chromium/LazyDecodingPixelRef.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
Index: Source/core/platform/graphics/chromium/LazyDecodingPixelRef.h
diff --git a/Source/core/platform/graphics/chromium/LazyDecodingPixelRef.h b/Source/core/platform/graphics/chromium/LazyDecodingPixelRef.h
index a455c21719ae5c7cbf632ce7ca1ac8edae4f8c37..a473f475bf64b25af3ec181970de4a16612849a4 100644
--- a/Source/core/platform/graphics/chromium/LazyDecodingPixelRef.h
+++ b/Source/core/platform/graphics/chromium/LazyDecodingPixelRef.h
@@ -34,7 +34,6 @@
#include "skia/ext/lazy_pixel_ref.h"
#include <wtf/RefPtr.h>
-#include <wtf/ThreadingPrimitives.h>
using skia::LazyPixelRef;
@@ -47,12 +46,13 @@ class ScaledImageFragment;
class LazyDecodingPixelRef : public LazyPixelRef {
public:
- LazyDecodingPixelRef(PassRefPtr<ImageFrameGenerator>, const SkISize& scaledSize, const SkIRect& scaledSubset);
+ LazyDecodingPixelRef(PassRefPtr<ImageFrameGenerator>, const SkISize& scaledSize, size_t index, const SkIRect& scaledSubset);
virtual ~LazyDecodingPixelRef();
SK_DECLARE_UNFLATTENABLE_OBJECT()
PassRefPtr<ImageFrameGenerator> frameGenerator() const { return m_frameGenerator; }
+ size_t frameIndex() const { return m_frameIndex; }
bool isScaled(const SkISize& fullSize) const;
bool isClipped() const;
@@ -72,11 +72,11 @@ protected:
private:
RefPtr<ImageFrameGenerator> m_frameGenerator;
+ size_t m_frameIndex;
SkISize m_scaledSize;
SkIRect m_scaledSubset;
const ScaledImageFragment* m_lockedCachedImage;
- Mutex m_mutex;
};
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698