mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-08 04:15:23 +03:00
d01b4327fa
Previously, ImageDecoder::create() would return a NonnullRefPtr and could not "fail", although the returned decoder may be "invalid" which you then had to check anyway. The new interface looks like this: static RefPtr<Gfx::ImageDecoder> try_create(ReadonlyBytes); This simplifies ImageDecoder since it no longer has to worry about its validity. Client code gets slightly clearer as well. |
||
---|---|---|
.. | ||
ClientConnection.cpp | ||
ClientConnection.h | ||
CMakeLists.txt | ||
Forward.h | ||
ImageDecoderClient.ipc | ||
ImageDecoderServer.ipc | ||
main.cpp |