summaryrefslogtreecommitdiff
path: root/Kernel
diff options
context:
space:
mode:
authorLiav A <liavalb@gmail.com>2022-04-30 13:55:00 +0300
committerAndreas Kling <kling@serenityos.org>2022-05-05 20:55:57 +0200
commit4ff6150f1b760b0674f32b44bbc58e5c2971ffa4 (patch)
treecfb0cc16d0d4f827d466069de1cc75b1e2464bb6 /Kernel
parent41283a2de6f3861eb36648041462b10b7206493e (diff)
downloadserenity-4ff6150f1b760b0674f32b44bbc58e5c2971ffa4.zip
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.
Diffstat (limited to 'Kernel')
-rw-r--r--Kernel/API/FB.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Kernel/API/FB.h b/Kernel/API/FB.h
index 2917806122..ee57eece27 100644
--- a/Kernel/API/FB.h
+++ b/Kernel/API/FB.h
@@ -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