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:
parent
8946c0c104
commit
4cb7573582
2 changed files with 18 additions and 16 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue