WindowServer: Add WSClientConnection::create_bitmap().

There we go. Now WSWindow doesn't know about Process at all.
This commit is contained in:
Andreas Kling 2019-02-14 10:29:17 +01:00
commit 5d30c6b00c
Notes: sideshowbarker 2024-07-19 15:45:08 +09:00
3 changed files with 13 additions and 12 deletions

View file

@ -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()) {