mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:37:35 +00:00
LibGfx: Remove Gfx::ImageDecoder::bitmap() in favor of frame(index)
To transparently support multi-frame images, all decoder plugins have already been updated to return their only bitmap for frame(0). This patch completes the remaining cleanup work by removing the ImageDecoder::bitmap() API and having all clients call frame() instead.
This commit is contained in:
parent
d01b4327fa
commit
751cb094ff
13 changed files with 35 additions and 49 deletions
|
@ -1046,9 +1046,11 @@ size_t DDSImageDecoderPlugin::frame_count()
|
|||
return 1;
|
||||
}
|
||||
|
||||
ImageFrameDescriptor DDSImageDecoderPlugin::frame([[maybe_unused]] size_t i)
|
||||
ImageFrameDescriptor DDSImageDecoderPlugin::frame(size_t i)
|
||||
{
|
||||
// We have "frames", but they are all the same image, so lets just use the largest version.
|
||||
if (i > 0)
|
||||
return {};
|
||||
return { bitmap(), 0 };
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue