summaryrefslogtreecommitdiffstats
path: root/include/ui
diff options
context:
space:
mode:
authorGerd Hoffmann2018-03-06 10:09:51 +0100
committerGerd Hoffmann2018-03-12 09:00:34 +0100
commitf1bd313264925dfb229a2152eb3f60fe55746b83 (patch)
tree8fcddc78bac820798553a28e80b743f334fddbc8 /include/ui
parentui/gtk-egl: add scanout_dmabuf support (diff)
downloadqemu-f1bd313264925dfb229a2152eb3f60fe55746b83.tar.gz
qemu-f1bd313264925dfb229a2152eb3f60fe55746b83.tar.xz
qemu-f1bd313264925dfb229a2152eb3f60fe55746b83.zip
ui/gtk-egl: add cursor_dmabuf support
Add support for cursor dmabufs to gtk-egl. Just blend in the cursor (if we have one) when rendering the dmabuf. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Message-id: 20180306090951.22932-7-kraxel@redhat.com
Diffstat (limited to 'include/ui')
-rw-r--r--include/ui/gtk.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/ui/gtk.h b/include/ui/gtk.h
index 84c992c227..2922fc64b2 100644
--- a/include/ui/gtk.h
+++ b/include/ui/gtk.h
@@ -54,6 +54,9 @@ typedef struct VirtualGfxConsole {
int x, y, w, h;
egl_fb guest_fb;
egl_fb win_fb;
+ egl_fb cursor_fb;
+ int cursor_x;
+ int cursor_y;
bool y0_top;
bool scanout_mode;
#endif
@@ -115,6 +118,11 @@ void gd_egl_scanout_texture(DisplayChangeListener *dcl,
uint32_t w, uint32_t h);
void gd_egl_scanout_dmabuf(DisplayChangeListener *dcl,
QemuDmaBuf *dmabuf);
+void gd_egl_cursor_dmabuf(DisplayChangeListener *dcl,
+ QemuDmaBuf *dmabuf, bool have_hot,
+ uint32_t hot_x, uint32_t hot_y);
+void gd_egl_cursor_position(DisplayChangeListener *dcl,
+ uint32_t pos_x, uint32_t pos_y);
void gd_egl_release_dmabuf(DisplayChangeListener *dcl,
QemuDmaBuf *dmabuf);
void gd_egl_scanout_flush(DisplayChangeListener *dcl,