mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 03:57:44 +00:00
LibGfx: Remove ImageDecoderPlugin::bitmap() in favor of frame(index)
To encourage proper support for multi-frame images throughout the system, get rid of the single-frame convenience bitmap() API.
This commit is contained in:
parent
750f1d580a
commit
2b866e3c9b
22 changed files with 105 additions and 155 deletions
|
@ -623,14 +623,6 @@ IntSize GIFImageDecoderPlugin::size()
|
|||
return { m_context->logical_screen.width, m_context->logical_screen.height };
|
||||
}
|
||||
|
||||
RefPtr<Gfx::Bitmap> GIFImageDecoderPlugin::bitmap()
|
||||
{
|
||||
if (m_context->state < GIFLoadingContext::State::FrameComplete) {
|
||||
return frame(0).image;
|
||||
}
|
||||
return m_context->frame_buffer;
|
||||
}
|
||||
|
||||
void GIFImageDecoderPlugin::set_volatile()
|
||||
{
|
||||
if (m_context->frame_buffer) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue