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

Unified Diff: Source/platform/image-decoders/png/PNGImageDecoder.h

Issue 1316203008: Never consolidate data in ICO decoder (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@FastSharedBuffer
Patch Set: Respond to pkasting@'s comments in patch set 2 Created 5 years, 3 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/platform/image-decoders/png/PNGImageDecoder.h
diff --git a/Source/platform/image-decoders/png/PNGImageDecoder.h b/Source/platform/image-decoders/png/PNGImageDecoder.h
index 7f54c2e360725981b96c9c96ce4cb6b331a77995..88257407ad046bddc34f8fd5f60a1b724d96514e 100644
--- a/Source/platform/image-decoders/png/PNGImageDecoder.h
+++ b/Source/platform/image-decoders/png/PNGImageDecoder.h
@@ -37,7 +37,7 @@ class PNGImageReader;
class PLATFORM_EXPORT PNGImageDecoder : public ImageDecoder {
WTF_MAKE_NONCOPYABLE(PNGImageDecoder);
public:
- PNGImageDecoder(AlphaOption, GammaAndColorProfileOption, size_t maxDecodedBytes);
+ PNGImageDecoder(AlphaOption, GammaAndColorProfileOption, size_t maxDecodedBytes, unsigned offset = 0);
~PNGImageDecoder() override;
// ImageDecoder:
@@ -61,6 +61,7 @@ private:
OwnPtr<PNGImageReader> m_reader;
bool m_hasColorProfile;
+ const unsigned m_offset;
};
} // namespace blink
« no previous file with comments | « Source/platform/image-decoders/ico/ICOImageDecoder.cpp ('k') | Source/platform/image-decoders/png/PNGImageDecoder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698