mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-19 15:43:20 +00:00
LibGfx: Use NonnullRefPtr<Bitmap> for frame descriptors
This makes it a bit easier to reason about where bitmaps should be available.
This commit is contained in:
parent
ff78746be1
commit
2687246808
Notes:
github-actions[bot]
2025-06-25 10:55:58 +00:00
Author: https://github.com/gmta
Commit: 2687246808
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5208
12 changed files with 35 additions and 42 deletions
|
@ -211,7 +211,6 @@ TEST_CASE(test_gif_without_global_color_table)
|
|||
auto plugin_decoder = TRY_OR_FAIL(Gfx::GIFImageDecoderPlugin::create(gif_data));
|
||||
EXPECT_EQ(plugin_decoder->frame_count(), 1u);
|
||||
auto frame = TRY_OR_FAIL(plugin_decoder->frame(0));
|
||||
EXPECT(frame.image);
|
||||
EXPECT_EQ(frame.image->size(), Gfx::IntSize(1, 1));
|
||||
EXPECT_EQ(frame.image->get_pixel(0, 0), Gfx::Color::NamedColor::Red);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue