summaryrefslogtreecommitdiff
path: root/server/dcc-send.c
AgeCommit message (Collapse)AuthorFilesLines
2016-04-15dcc: use PipeItem refcounting for ImageItemJonathon Jongsma1-2/+2
Since the base class now implements refcounting, there's no need to re-invent it here.
2016-03-17Use QXLInstance instead of QXLState in red_qxl_*Christophe Fergeau1-2/+2
This seems to make more sense this way, QXLInstance is the 'main' object with QXLState being its private data. External users then use QXLInstance rather than passing a pointer to the private data to red-qxl.h methods. Acked-by: Frediano Ziglio <fziglio@redhat.com>
2016-03-15Use more explicit variable name in marshall_gl_scanout()Christophe Fergeau1-4/+4
Acked-by: Frediano Ziglio <fziglio@redhat.com>
2016-03-04use QXLState instead of RedDispatcherFrediano Ziglio1-11/+6
Considering that: - QXLState is the state of QXLInstance implementation; - RedDispatcher is the implementation of QXL; - qif (QXLInterface*) field can be computed really easy from QXLInstance; - most of its state is private. Make all structure private and use QXLState instead of RedDispatcher. Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Jonathon Jongsma <jjongsma@redhat.com> Acked-by: Christophe Fergeau <cfergeau@redhat.com>
2016-02-16dcc: move id from CommonChannelClient to DisplayChannelClientFrediano Ziglio1-7/+7
Was not used by CursorChannelClient but only by DisplayChannelClient. Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Pavel Grunt <pgrunt@redhat.com>
2016-02-15qxl: Remove unused group_id arg to fill_attrChristophe Fergeau1-2/+2
Acked-by: Frediano Ziglio <fziglio@redhat.com>
2016-02-15Add RedsState arg to all stat functionsJonathon Jongsma1-3/+3
Acked-by: Frediano Ziglio <fziglio@redhat.com>
2016-02-11CommonChannel: hold a reference to QXLInstance instead of RedWorkerFrediano Ziglio1-2/+1
CommonChannel does not need to know about RedWorker. This reduce a bit dependencies between objects. Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
2016-02-09Handle GL_DRAW messagesMarc-André Lureau1-0/+14
Create an async, and marshall the GL_DRAW message. Count number of clients, and wait until gl_draw_async_count is 0 to complete the async. The count is going to be updated in the following patch when the client is done with the draw. Signed-off-by: Marc-André Lureau <marcandre.lureau@gmail.com> [removed unused sent field; move gl_draw_async_count to DisplayChannel - Frediano Ziglio] Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
2016-02-09Handle GL_SCANOUT messagesMarc-André Lureau1-0/+25
Go through dispatcher and marshall scanout message. Since the marshaller and the QXL state are manipulated from different threads, add a mutex to protect the current scanout. Signed-off-by: Marc-André Lureau <marcandre.lureau@gmail.com>
2016-01-20dcc-send: Use dcc_compress_image to compress imagePavel Grunt1-42/+2
Acked-by: Frediano Ziglio <fziglio@redhat.com>
2015-12-11dcc: do not cause problem with multiple threads.Frediano Ziglio1-3/+2
With multiple cards configured you can have multiple workers running in different thread. With such configuration static variables not syncronized could lead to undefined behavior. Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
2015-12-11server: Rename red_get_monotonic_time() to spice_get_monotonic_time_ns()Francois Gouget1-1/+1
This is a generic function not tied to the red_xxx functionality and the new name clarifies that it returns the time in nanoseconds (unlike g_get_monotonic_time()). Signed-off-by: Francois Gouget <fgouget@codeweavers.com> Acked-by: Frediano Ziglio <fziglio@redhat.com>
2015-12-03dcc: reduce statement wrappingFrediano Ziglio1-6/+2
Signed-off-by: Marc-André Lureau <marcandre.lureau@gmail.com> Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Fabiano Fidêncio <fidencio@redhat.com>
2015-11-27worker: remove some unnecessary inlineMarc-André Lureau1-5/+5
Acked-by: Pavel Grunt <pgrunt@redhat.com>
2015-11-27worker: move dcc_send & marshallers to dcc-send.cMarc-André Lureau1-0/+2468
Acked-by: Frediano Ziglio <fziglio@redhat.com>