1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 01:17:34 +00:00

LibGfx/PNG: Decode the header in create() and remove initialize()

This is done as a part of #19893. As `create()` is now the last user of
`decode_png_ihdr()`, we can easily make it return an `ErrorOr`.
This commit is contained in:
Lucas CHOLLET 2023-07-17 00:15:12 -04:00 committed by Sam Atkins
parent 07f72b6d41
commit ff6d82c3e7
2 changed files with 12 additions and 47 deletions

View file

@ -21,7 +21,6 @@ public:
virtual IntSize size() override;
virtual ErrorOr<void> initialize() override;
virtual bool is_animated() override;
virtual size_t loop_count() override;
virtual size_t frame_count() override;