summaryrefslogtreecommitdiff
path: root/Libraries/LibGUI/DisplayLink.cpp
AgeCommit message (Collapse)Author
2020-03-22WindowServer+LibGUI: Add a way to get notified at display refresh rateAndreas Kling
This patch adds GUI::DisplayLink, a mechanism for registering callbacks that will fire at the display refresh rate. Note that we don't actually know the screen refresh rate, but this is instead completely driven by WindowServer's compositing timer. For all current intents and purposes it does the job well enough. :^)