OSDN Git Service

console: modify ppm_save to take a pixman image ref
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 27 Oct 2020 13:36:01 +0000 (17:36 +0400)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 4 Nov 2020 07:02:24 +0000 (08:02 +0100)
commitd00ec2fe86e141324c26816c5847f425a63f851d
tree9ccc5828e6db1702c456e775c3bfa308e8cb07f5
parente18d9a9687ff0c30b70ee0a694d9fcf9333cd844
console: modify ppm_save to take a pixman image ref

The function is going to be called from a coroutine, and may yield.
Let's ensure our image reference doesn't change over time (due to resize
etc) by keeping a ref.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Gerd Hoffmann <kraxel@redhat.com>
Message-id: 20201027133602.3038018-3-marcandre.lureau@redhat.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
ui/console.c
ui/trace-events