mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-18 05:28:36 -07:00
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
This commit is contained in:
parent
70763fea4f
commit
f1bd313264
3 changed files with 49 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue