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:
parent
1192e46c09
commit
b8bc84a3e8
2 changed files with 39 additions and 35 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue