LibGfx: Make ImageDecoderPlugin::frame() return ErrorOr<>

This is a first step towards better error propagation from image codecs.
This commit is contained in:
Andreas Kling 2021-11-20 14:29:33 +01:00
commit 5a79c69b02
Notes: sideshowbarker 2024-07-18 00:54:14 +09:00
26 changed files with 101 additions and 100 deletions

View file

@ -27,7 +27,7 @@ public:
virtual bool is_animated() override;
virtual size_t loop_count() override;
virtual size_t frame_count() override;
virtual ImageFrameDescriptor frame(size_t i) override;
virtual ErrorOr<ImageFrameDescriptor> frame(size_t index) override;
private:
OwnPtr<PGMLoadingContext> m_context;