ui/cocoa: Do not copy members of pixman image
commitc0ff29d1889040a61a7120731ac16e0c1da39149
authorAkihiko Odaki <akihiko.odaki@gmail.com>
Fri, 12 Feb 2021 00:06:29 +0000 (12 09:06 +0900)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 19 Feb 2021 14:00:12 +0000 (19 15:00 +0100)
tree21d8136feebf8362d4a6fc0af78165c61ea0f4d6
parent708b72557ff510493ab3653c7a1ebfe983009469
ui/cocoa: Do not copy members of pixman image

The old CocoaView had an idea of synchronizing the host window
configuration and the guest screen configuration. Here, the guest screen
actually means pixman image given ui/cocoa display implementation.

However, [CocoaView -drawRect:] directly interacts with the pixman
image buffer in reality. There is no such distinction of "host" and
"guest." This change removes the "host" configuration and let drawRect
consistently have the direct reference to pixman image. It allows to
get rid of the error-prone "sync" and reduce code size a bit.

Signed-off-by: Akihiko Odaki <akihiko.odaki@gmail.com>
Message-Id: <20210212000629.28551-1-akihiko.odaki@gmail.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
ui/cocoa.m