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.
26 lines
555 B
C++
26 lines
555 B
C++
/*
|
|
* Copyright (c) 2026, the Ladybird developers.
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#include <Compositor/ConnectionFromWebContent.h>
|
|
|
|
namespace Compositor {
|
|
|
|
ConnectionFromWebContent::ConnectionFromWebContent(NonnullOwnPtr<IPC::Transport> transport, int client_id)
|
|
: IPC::ConnectionFromClient<CompositorWebContentClientEndpoint, CompositorWebContentServerEndpoint>(*this, move(transport), client_id)
|
|
{
|
|
}
|
|
|
|
void ConnectionFromWebContent::die()
|
|
{
|
|
if (on_death)
|
|
on_death(*this);
|
|
}
|
|
|
|
void ConnectionFromWebContent::ping()
|
|
{
|
|
}
|
|
|
|
}
|