1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 06:18:12 +00:00

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
parent 8946c0c104
commit 4cb7573582
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;
};