LibGfx/DDS: Only use a FixedMemoryStream

This allows us to drop the data pointer in the `DDSLoadingContext`.
This commit is contained in:
Lucas CHOLLET 2023-07-06 23:06:39 -04:00 committed by Sam Atkins
commit 4cb7573582
Notes: sideshowbarker 2024-07-17 06:51:10 +09:00
2 changed files with 18 additions and 16 deletions

View file

@ -6,6 +6,7 @@
#pragma once
#include <AK/MemoryStream.h>
#include <LibGfx/ImageFormats/ImageDecoder.h>
namespace Gfx {
@ -251,7 +252,7 @@ public:
virtual ErrorOr<Optional<ReadonlyBytes>> icc_data() override;
private:
DDSImageDecoderPlugin(u8 const*, size_t);
DDSImageDecoderPlugin(FixedMemoryStream);
OwnPtr<DDSLoadingContext> m_context;
};