mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-01 23:26:36 +00:00
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:
parent
41283a2de6
commit
4ff6150f1b
Notes:
sideshowbarker
2024-07-17 18:06:52 +09:00
Author: https://github.com/supercomputer7
Commit: 4ff6150f1b
Pull-request: https://github.com/SerenityOS/serenity/pull/13845
8 changed files with 45 additions and 5 deletions
|
@ -31,12 +31,15 @@ public:
|
|||
virtual ErrorOr<void> unmap_framebuffer() = 0;
|
||||
virtual ErrorOr<void> map_framebuffer() = 0;
|
||||
|
||||
virtual ErrorOr<void> flush_framebuffer() = 0;
|
||||
|
||||
virtual ErrorOr<void> set_head_resolution(FBHeadResolution) = 0;
|
||||
virtual ErrorOr<FBHeadProperties> get_head_properties() = 0;
|
||||
|
||||
virtual ErrorOr<void> write_all_contents(Gfx::IntRect const&) { return {}; }
|
||||
|
||||
bool m_can_device_flush_buffers { true };
|
||||
bool m_can_device_flush_entire_framebuffer { true };
|
||||
bool m_can_set_head_buffer { false };
|
||||
|
||||
Gfx::ARGB32* m_framebuffer { nullptr };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue