mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-07 09:04:30 +00:00
WindowServer: Add WSClientConnection::create_bitmap().
There we go. Now WSWindow doesn't know about Process at all.
This commit is contained in:
@@ -65,6 +65,13 @@ void WSClientConnection::post_message(GUI_ServerMessage&& message)
|
||||
m_process->gui_events().append(move(message));
|
||||
}
|
||||
|
||||
RetainPtr<GraphicsBitmap> WSClientConnection::create_bitmap(const Size& size)
|
||||
{
|
||||
if (!m_process)
|
||||
return nullptr;
|
||||
return GraphicsBitmap::create(*m_process, size);
|
||||
}
|
||||
|
||||
void WSClientConnection::on_message(WSMessage& message)
|
||||
{
|
||||
if (message.is_client_request()) {
|
||||
|
||||
Reference in New Issue
Block a user