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:
Jelle Raaijmakers 2025-06-25 10:25:28 +02:00 committed by Shannon Booth
parent ff78746be1
commit 2687246808
Notes: github-actions[bot] 2025-06-25 10:55:58 +00:00
12 changed files with 35 additions and 42 deletions

View file

@ -217,7 +217,7 @@ ErrorOr<ImageFrameDescriptor> JPEGImageDecoderPlugin::frame(size_t index, Option
m_context->state = JPEGLoadingContext::State::Decoded;
}
return ImageFrameDescriptor { m_context->rgb_bitmap, 0 };
return ImageFrameDescriptor { *m_context->rgb_bitmap, 0 };
}
Optional<Metadata const&> JPEGImageDecoderPlugin::metadata()