diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-08-15 15:08:32 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-08-15 15:11:31 +0200 |
commit | 14888bd9920e6da511589ef28adbefc0eb6c83a1 (patch) | |
tree | 2fe874e8e5a6622c7ea8e337120d719a397161eb /Servers/WindowServer/WSCompositor.h | |
parent | 2349dc1a21a9f82943532214f4e1189af1d33c16 (diff) | |
download | serenity-14888bd9920e6da511589ef28adbefc0eb6c83a1.zip |
WindowServer: Add a mode for running without buffer flipping
We can't rely on all hardware to give us a way to flip between the back
and front buffer.
This mode should actually perform slightly better but may show some tearing
as we don't have a way to know when we're in vertical retrace.
Diffstat (limited to 'Servers/WindowServer/WSCompositor.h')
-rw-r--r-- | Servers/WindowServer/WSCompositor.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Servers/WindowServer/WSCompositor.h b/Servers/WindowServer/WSCompositor.h index 3a0310427c..496e6512bf 100644 --- a/Servers/WindowServer/WSCompositor.h +++ b/Servers/WindowServer/WSCompositor.h @@ -35,6 +35,8 @@ public: void invalidate_cursor(); Rect current_cursor_rect() const; + bool can_flip_buffers() const { return true; } + private: WSCompositor(); void flip_buffers(); |