1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 09:37:34 +00:00

LibGfx: Provide a default implementation for ImageDecoder::initialize

In order to ease the removal of this function, let's provide a no-op
default implementation so decoders can stop implementing it one by one.

First step of #19893
This commit is contained in:
Lucas CHOLLET 2023-07-08 23:52:52 -04:00 committed by Linus Groh
parent e84def4890
commit babe924da1

View file

@ -31,7 +31,7 @@ public:
virtual IntSize size() = 0;
virtual ErrorOr<void> initialize() = 0;
virtual ErrorOr<void> initialize() { return {}; }
virtual bool is_animated() = 0;
virtual size_t loop_count() = 0;