diff options
author | Liav A <liavalb@gmail.com> | 2022-04-30 13:55:00 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-05-05 20:55:57 +0200 |
commit | 4ff6150f1b760b0674f32b44bbc58e5c2971ffa4 (patch) | |
tree | cfb0cc16d0d4f827d466069de1cc75b1e2464bb6 /Kernel | |
parent | 41283a2de6f3861eb36648041462b10b7206493e (diff) | |
download | serenity-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.h | 5 |
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 |