mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:07:36 +00:00
Kernel: Implement buffer flipping for VirtIOGPU framebuffers
This solves tearing issues and improves performance when updating the VirtIOGPU framebuffers.
This commit is contained in:
parent
6e792553f2
commit
7fdf902e4a
7 changed files with 148 additions and 65 deletions
|
@ -66,7 +66,7 @@ void VirtIOGPUConsole::enqueue_refresh_timer()
|
|||
.height = (u32)rect.height(),
|
||||
};
|
||||
g_io_work->queue([this, dirty_rect]() {
|
||||
m_framebuffer_device->flush_dirty_window(dirty_rect);
|
||||
m_framebuffer_device->flush_dirty_window(dirty_rect, m_framebuffer_device->current_buffer());
|
||||
m_dirty_rect.clear();
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue