diff options
author | Marc-André Lureau <marcandre.lureau@gmail.com> | 2016-02-09 14:35:02 +0100 |
---|---|---|
committer | Frediano Ziglio <fziglio@redhat.com> | 2016-02-09 14:01:12 +0000 |
commit | ebf461b8e699536a600a15d600dc9a28e865cb90 (patch) | |
tree | d30f91c563b9154e1bc7b38db912a11d46b88873 /server/reds.h | |
parent | 9766619dfffaebc82728624e6d0a0c3083ee2906 (diff) |
Add new spice-gl stubs API
- spice_qxl_gl_scanout() to take the current scanout
- spice_qxl_gl_draw_async() to draw the scanout, is like other Spice async
functions, it takes a cookie and will return in the
QXLInterface.async_complete()
Two new fields are also added to QXLState, in order to save the current
scanout, and the pending async.
A scanout can't be updated if there are pending draw atm. Discarding
outdated draws is left as a future improvement to allow updating the
scanout without waiting for draw async to be done.
Signed-off-by: Marc-André Lureau <marcandre.lureau@gmail.com>
[make QXL function names more coherent - Frediano Ziglio]
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Diffstat (limited to 'server/reds.h')
-rw-r--r-- | server/reds.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/server/reds.h b/server/reds.h index 8ff4491b..3182382d 100644 --- a/server/reds.h +++ b/server/reds.h @@ -36,6 +36,8 @@ extern RedsState *reds; struct QXLState { QXLInterface *qif; struct RedDispatcher *dispatcher; + SpiceMsgDisplayGlScanoutUnix scanout; + struct AsyncCommand *gl_draw_async; }; struct TunnelWorker; |