mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-12 12:32:21 +00:00
LibGfx+ImageViewer: Replace ImageDecoder::is_vector() with an enum
That makes it easier to extend to other special frame formats.
This commit is contained in:
parent
a47edb4ed1
commit
c997ee7b9d
Notes:
sideshowbarker
2024-07-16 20:51:53 +09:00
Author: https://github.com/nico
Commit: c997ee7b9d
Pull-request: https://github.com/SerenityOS/serenity/pull/22650
Reviewed-by: https://github.com/LucasChollet ✅
3 changed files with 11 additions and 4 deletions
|
@ -83,7 +83,7 @@ public:
|
|||
virtual IntSize size() override;
|
||||
virtual ErrorOr<ImageFrameDescriptor> frame(size_t index, Optional<IntSize> ideal_size = {}) override;
|
||||
|
||||
virtual bool is_vector() override { return true; }
|
||||
virtual NaturalFrameFormat natural_frame_format() const override { return NaturalFrameFormat::Vector; }
|
||||
virtual ErrorOr<VectorImageFrameDescriptor> vector_frame(size_t index) override;
|
||||
|
||||
virtual ~TinyVGImageDecoderPlugin() override = default;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue