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

Unified Diff: third_party/WebKit/Source/platform/image-decoders/ico/ICOImageDecoder.h

Issue 1962563002: Fix ImageDecoder::frameIsCompleteAtIndex - fully received instead of decoded. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Deferred decoding for ICO Created 4 years, 6 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: third_party/WebKit/Source/platform/image-decoders/ico/ICOImageDecoder.h
diff --git a/third_party/WebKit/Source/platform/image-decoders/ico/ICOImageDecoder.h b/third_party/WebKit/Source/platform/image-decoders/ico/ICOImageDecoder.h
index 3df9ba16767fa8a2e25c669b9e4a09cb28d0faf2..9b23203efa32ed268e8a8a5be4dcc9ecfa162e08 100644
--- a/third_party/WebKit/Source/platform/image-decoders/ico/ICOImageDecoder.h
+++ b/third_party/WebKit/Source/platform/image-decoders/ico/ICOImageDecoder.h
@@ -50,6 +50,8 @@ public:
IntSize size() const override;
IntSize frameSizeAtIndex(size_t) const override;
bool setSize(unsigned width, unsigned height) override;
+ bool frameIsFullyReceivedAtIndex(size_t) const override;
+
// CAUTION: setFailed() deletes all readers and decoders. Be careful to
// avoid accessing deleted memory, especially when calling this from
// inside BMPImageReader!
@@ -74,6 +76,7 @@ private:
uint16_t m_bitCount;
IntPoint m_hotSpot;
uint32_t m_imageOffset;
+ uint32_t m_byteSize;
};
// Returns true if |a| is a preferable icon entry to |b|.

Powered by Google App Engine
This is Rietveld 408576698