ladybird/Libraries/LibWebView/CompositorClient.h
Aliaksandr Kalenik bfc9bf80d9 Compositor+LibWebView+WebContent: Scaffold opt-in Compositor process
The compositor is moving into a dedicated helper process. That requires
a process to launch, channels for Browser and WebContent to talk to it
over, and client proxies on each side. Land all of that as an inert
scaffold first, gated behind --enable-compositor-process, so the default
rendering path is unchanged and later commits can fill in the protocol,
the service-side state, and the runtime switch against a stable target.
2026-05-22 19:50:42 +01:00

35 lines
887 B
C++

/*
* Copyright (c) 2026, the Ladybird developers.
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/Function.h>
#include <Compositor/CompositorControlClientEndpoint.h>
#include <Compositor/CompositorControlServerEndpoint.h>
#include <LibIPC/ConnectionToServer.h>
#include <LibWebView/Forward.h>
namespace WebView {
class WEBVIEW_API CompositorClient final
: public IPC::ConnectionToServer<CompositorControlClientEndpoint, CompositorControlServerEndpoint>
, public CompositorControlClientEndpoint {
C_OBJECT_ABSTRACT(CompositorClient)
public:
using InitTransport = Messages::CompositorControlServer::InitTransport;
explicit CompositorClient(NonnullOwnPtr<IPC::Transport>);
Function<void()> on_death;
private:
virtual void die() override;
virtual void did_connect_web_content(i32 web_content_connection_id) override;
};
}