diff options
author | Andreas Kling <kling@serenityos.org> | 2022-09-16 15:01:47 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-09-16 15:15:50 +0200 |
commit | cd7262ee5623aa7b4571ef121139002827fe9965 (patch) | |
tree | b66fde9e0b45ed1281d768cd8dd95fad883b05d3 /Userland/Libraries/LibWebView/ImageDecoderClientAdapter.h | |
parent | 412b2313f33f5efe7f672fed7c26c8fa0187c188 (diff) | |
download | serenity-cd7262ee5623aa7b4571ef121139002827fe9965.zip |
LibWeb+LibWebView+WebContent: Add Web::Platform::ImageCodecPlugin
This replaces the previous Web::ImageDecoding::Decoder interface.
While we're doing this, also move the SerenityOS implementation of this
interface from LibWebView to WebContent. That means we no longer have to
link with LibImageDecoderClient in applications that use a web view.
Diffstat (limited to 'Userland/Libraries/LibWebView/ImageDecoderClientAdapter.h')
-rw-r--r-- | Userland/Libraries/LibWebView/ImageDecoderClientAdapter.h | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/Userland/Libraries/LibWebView/ImageDecoderClientAdapter.h b/Userland/Libraries/LibWebView/ImageDecoderClientAdapter.h deleted file mode 100644 index e46b0e6974..0000000000 --- a/Userland/Libraries/LibWebView/ImageDecoderClientAdapter.h +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (c) 2022, Dexβͺ <dexes.ttp@gmail.com> - * - * SPDX-License-Identifier: BSD-2-Clause - */ - -#pragma once - -#include <AK/NonnullRefPtr.h> -#include <LibWeb/ImageDecoding.h> - -namespace ImageDecoderClient { -class Client; -} - -namespace WebView { - -class ImageDecoderClientAdapter : public Web::ImageDecoding::Decoder { -public: - static NonnullRefPtr<ImageDecoderClientAdapter> create(); - - virtual ~ImageDecoderClientAdapter() override = default; - - virtual Optional<Web::ImageDecoding::DecodedImage> decode_image(ReadonlyBytes) override; - -private: - explicit ImageDecoderClientAdapter() = default; - - RefPtr<ImageDecoderClient::Client> m_client; -}; - -} |