WindowServer: Use FB_IOCTL_FLUSH_HEAD to flush a framebuffer if possible

This ioctl is more appropriate when the hardware supports flushing of
the entire framebuffer, so we use that instead of the previous default
FB_IOCTL_FLUSH_HEAD_BUFFERS ioctl.
This commit is contained in:
Liav A 2022-04-30 13:55:00 +03:00 committed by Andreas Kling
commit 4ff6150f1b
Notes: sideshowbarker 2024-07-17 18:06:52 +09:00
8 changed files with 45 additions and 5 deletions

View file

@ -98,4 +98,9 @@ ALWAYS_INLINE int fb_flush_buffers(int fd, int index, FBRect const* rects, unsig
return ioctl(fd, FB_IOCTL_FLUSH_HEAD_BUFFERS, &fb_flush_rects);
}
ALWAYS_INLINE int fb_flush_head(int fd)
{
return ioctl(fd, FB_IOCTL_FLUSH_HEAD, nullptr);
}
__END_DECLS