1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 05:57:45 +00:00

LibGfx/GIF: Only use a FixedMemoryStream

This allows us to drop the data pointer in the `GIFLoadingContext`.
This commit is contained in:
Lucas CHOLLET 2023-07-14 17:45:19 -04:00 committed by Andreas Kling
parent 1192e46c09
commit b8bc84a3e8
2 changed files with 39 additions and 35 deletions

View file

@ -6,6 +6,7 @@
#pragma once
#include <AK/MemoryStream.h>
#include <LibGfx/Bitmap.h>
#include <LibGfx/ImageFormats/ImageDecoder.h>
@ -30,7 +31,7 @@ public:
virtual ErrorOr<Optional<ReadonlyBytes>> icc_data() override;
private:
GIFImageDecoderPlugin(u8 const*, size_t);
GIFImageDecoderPlugin(FixedMemoryStream);
OwnPtr<GIFLoadingContext> m_context;
};