aboutsummaryrefslogtreecommitdiff
path: root/nbd
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2018-11-27 17:55:59 +0000
committerPeter Maydell <peter.maydell@linaro.org>2018-11-27 18:10:16 +0000
commit1e3c2ed301123e763ee2af3fcc822ec905c545e3 (patch)
treecc34672c9fd7762da431ba8386c9dc0fa481ec8c /nbd
parent04857f8da6a8554bcccc01f5dbd5a519926f3c1d (diff)
ui/cocoa: Use the pixman image directly in switchSurface
Currently the switchSurface method takes a DisplaySurface. We want to change our DisplayChangeListener's dpy_gfx_switch callback to do this work asynchronously on a different thread. The caller of the switch callback will free the old DisplaySurface immediately the callback returns, so to ensure that the other thread doesn't access freed data we need to switch to using the underlying pixman image instead. The pixman image is reference counted, so we will be able to take a reference to it to avoid it vanishing too early. In this commit we only change the switchSurface method to take a pixman image, and keep the flow of control synchronous for now. Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'nbd')
0 files changed, 0 insertions, 0 deletions