]> git.proxmox.com Git - mirror_qemu.git/commit - meson.build
ui/cocoa: Take refresh rate into account
authorAkihiko Odaki <akihiko.odaki@gmail.com>
Sat, 2 Jul 2022 14:25:19 +0000 (23:25 +0900)
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>
Tue, 12 Jul 2022 22:06:02 +0000 (00:06 +0200)
commit52eaefd36c33d17c5c52de0d02f1edf7400c0abb
treeba6e52b6b87e8fa55231cd840ae9cb8967a472ba
parent713911a10752642564ff9b7c9c0bd1a5498105a5
ui/cocoa: Take refresh rate into account

Retrieve the refresh rate of the display and reflect it with
dpy_set_ui_info() and update_displaychangelistener(), allowing the
guest and DisplayChangeListener to consume the information.

The information will be used as a hint how often the display should
be updated. For example, when we run 30 Hz physical display updates
it is pointless for the guest to update the screen at 60Hz
frequency, the guest can spare some work instead.

Signed-off-by: Akihiko Odaki <akihiko.odaki@gmail.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-Id: <20220702142519.12188-1-akihiko.odaki@gmail.com>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
meson.build
ui/cocoa.m