mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
Tests/LibGfx: Call ImageDecoder::size()
before frame()
Reordering these calls allow us to ensure that all encoders are able to return the size of the image before they are requested to decode the whole bitmap.
This commit is contained in:
parent
7a48d59727
commit
7b4630932b
Notes:
sideshowbarker
2024-07-17 07:43:44 +09:00
Author: https://github.com/LucasChollet Commit: https://github.com/SerenityOS/serenity/commit/7b4630932b Pull-request: https://github.com/SerenityOS/serenity/pull/20088 Reviewed-by: https://github.com/nico ✅
1 changed files with 1 additions and 1 deletions
|
@ -42,8 +42,8 @@ static Gfx::ImageFrameDescriptor expect_single_frame(Gfx::ImageDecoderPlugin& pl
|
|||
|
||||
static Gfx::ImageFrameDescriptor expect_single_frame_of_size(Gfx::ImageDecoderPlugin& plugin_decoder, Gfx::IntSize size)
|
||||
{
|
||||
auto frame = expect_single_frame(plugin_decoder);
|
||||
EXPECT_EQ(plugin_decoder.size(), size);
|
||||
auto frame = expect_single_frame(plugin_decoder);
|
||||
EXPECT_EQ(frame.image->size(), size);
|
||||
return frame;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue