mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 09:28:13 +00:00
WindowServer: Drop support for the DisplayConnector write interface
All DisplayConnectors should support the mmap interface and it should provide better performance now, so let's just use it and drop support for the DisplayConnector's write interface from the WindowServer side.
This commit is contained in:
parent
e2ed6ef741
commit
f62cd52d12
6 changed files with 5 additions and 36 deletions
|
@ -724,13 +724,6 @@ void Compositor::flush(Screen& screen)
|
|||
// now so that they can be sent to the device.
|
||||
screen.flush_display(screen_data.m_buffers_are_flipped ? 1 : 0);
|
||||
}
|
||||
|
||||
// Note: We write all contents from the internal buffer of WindowServer Screen
|
||||
// to the actual framebuffer with the write() syscall, but after we flush the screen
|
||||
// to ensure we are in a "clean state"...
|
||||
// FIXME: This write is completely inefficient and needs to be done in chunks
|
||||
// only when appropriate...
|
||||
screen.write_all_display_contents();
|
||||
}
|
||||
|
||||
void Compositor::invalidate_screen()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue