mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-21 09:49:21 +00:00
LibGfx/PortableFormat: Read the header during initialization
This is done as a part of #19893.
This commit is contained in:
parent
f3ff9c26bc
commit
9ff706339b
Notes:
sideshowbarker
2024-07-17 00:57:24 +09:00
Author: https://github.com/LucasChollet
Commit: 9ff706339b
Pull-request: https://github.com/SerenityOS/serenity/pull/19932
Reviewed-by: https://github.com/AtkinsSJ ✅
2 changed files with 4 additions and 14 deletions
|
@ -195,9 +195,8 @@ static ErrorOr<void> read_header(Context& context)
|
|||
template<typename TContext>
|
||||
static ErrorOr<void> decode(TContext& context)
|
||||
{
|
||||
VERIFY(context.state == TContext::State::NotDecoded);
|
||||
VERIFY(context.state == TContext::State::HeaderDecoded);
|
||||
|
||||
TRY(read_header(context));
|
||||
TRY(read_image_data(context));
|
||||
|
||||
context.state = TContext::State::BitmapDecoded;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue