mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:48:11 +00:00
Ladybird: Implement the Web::Platform::ImageCodecPlugin interface
...and move it to separate files while we're at it.
This commit is contained in:
parent
4334929323
commit
ef757f33da
4 changed files with 105 additions and 77 deletions
22
Ladybird/ImageCodecPluginLadybird.h
Normal file
22
Ladybird/ImageCodecPluginLadybird.h
Normal file
|
@ -0,0 +1,22 @@
|
|||
/*
|
||||
* Copyright (c) 2022, Dex♪ <dexes.ttp@gmail.com>
|
||||
* Copyright (c) 2022, Andreas Kling <kling@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <LibWeb/Platform/ImageCodecPlugin.h>
|
||||
|
||||
namespace Ladybird {
|
||||
|
||||
class ImageCodecPluginLadybird final : public Web::Platform::ImageCodecPlugin {
|
||||
public:
|
||||
ImageCodecPluginLadybird() = default;
|
||||
virtual ~ImageCodecPluginLadybird() override;
|
||||
|
||||
virtual Optional<Web::Platform::DecodedImage> decode_image(ReadonlyBytes data) override;
|
||||
};
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue