mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 17:57:34 +00:00
WindowServer: Implement support for combined buffer flipping + flushing
Some devices may require DMA transfers to flush the updated buffer areas prior to flipping. For those devices we track the areas that require flushing prior to the next flip. For devices that do not support flipping, but require flushing, we'll simply flush after updating the front buffer. This also adds a small optimization that skips these steps entirely for a screen that doesn't have any updates that need to be rendered.
This commit is contained in:
parent
45a2bc27d5
commit
fdae117600
7 changed files with 82 additions and 29 deletions
|
@ -165,7 +165,7 @@ public:
|
|||
|
||||
bool can_device_flush_buffers() const { return m_can_device_flush_buffers; }
|
||||
void queue_flush_display_rect(Gfx::IntRect const& rect);
|
||||
void flush_display();
|
||||
void flush_display(int buffer_index);
|
||||
|
||||
private:
|
||||
Screen(ScreenLayout::Screen&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue