mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 22:34:59 +00:00
WindowServer: Coalesce flushing buffers into one ioctl() call
We regularily need to flush many rectangles, so instead of making many expensive ioctl() calls to the framebuffer driver, collect the rectangles and only make one call. And if we have too many rectangles then it may be cheaper to just update the entire region, in which case we simply convert them all into a union and just flush that one rectangle instead.
This commit is contained in:
parent
56cd0f929e
commit
38af4c29e6
7 changed files with 123 additions and 31 deletions
|
@ -215,6 +215,8 @@ int FramebufferDevice::ioctl(FileDescription&, unsigned request, FlatPtr arg)
|
|||
return -EFAULT;
|
||||
return 0;
|
||||
}
|
||||
case FB_IOCTL_FLUSH_BUFFERS:
|
||||
return -ENOTSUP;
|
||||
default:
|
||||
return -EINVAL;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue