1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 03:17:34 +00:00

LibGfx/BMP: Decode the header in create() and remove initialize()

This is done as a part of #19893.
This commit is contained in:
Lucas CHOLLET 2023-07-16 21:55:07 -04:00 committed by Sam Atkins
parent 7b72bf2910
commit c336cef065
2 changed files with 11 additions and 28 deletions

View file

@ -29,7 +29,6 @@ public:
virtual IntSize size() override;
virtual ErrorOr<void> initialize() override;
bool sniff_dib();
virtual bool is_animated() override;
virtual size_t loop_count() override;
@ -40,6 +39,7 @@ public:
private:
BMPImageDecoderPlugin(u8 const*, size_t, IncludedInICO included_in_ico = IncludedInICO::No);
static ErrorOr<NonnullOwnPtr<BMPImageDecoderPlugin>> create_impl(ReadonlyBytes, IncludedInICO);
OwnPtr<BMPLoadingContext> m_context;
};