mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
WindowServer: Map shared GraphicsBitmaps read-only on the server side.
This commit is contained in:
@@ -27,7 +27,7 @@ GraphicsBitmap::GraphicsBitmap(Process& process, const Size& size)
|
||||
{
|
||||
auto& server = WSEventLoop::the().server_process();
|
||||
InterruptDisabler disabler;
|
||||
m_server_region = server.allocate_region_with_vmo(LinearAddress(), size_in_bytes, move(vmo), 0, "GraphicsBitmap (server)", true, true);
|
||||
m_server_region = server.allocate_region_with_vmo(LinearAddress(), size_in_bytes, move(vmo), 0, "GraphicsBitmap (server)", true, false);
|
||||
m_server_region->set_shared(true);
|
||||
}
|
||||
m_data = (RGBA32*)m_server_region->linearAddress.asPtr();
|
||||
|
||||
Reference in New Issue
Block a user