summaryrefslogtreecommitdiffstats
path: root/server/red_worker.c
Commit message (Collapse)AuthorAgeFilesLines
* worker: move red_drawable_count to DisplayChannelFrediano Ziglio2015-11-231-7/+6
| | | | | Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Pavel Grunt <pgrunt@redhat.com>
* server: remove OpenGLMarc-André Lureau2015-11-211-69/+0
| | | | | | | | | | This is really not supported, requires X11, so better to remove it for now. Some day it might be revived, using DRM, .. Note for later, this could be removed too (not used by client): - spice-common/common/ogl_ctx Acked-by: Fabiano Fidêncio <fidencio@redhat.com>
* stream: remove dcc parameter from stream_agent_stop()Marc-André Lureau2015-11-211-1/+1
| | | | | Author: Marc-André Lureau <marcandre.lureau@gmail.com> Acked-by: Frediano Ziglio <fziglio@redhat.com>
* worker: move more free_glz_drawableMarc-André Lureau2015-11-201-69/+0
| | | | | Acked-by: Fabiano Fidêncio <fidencio@redhat.com> Acked-by: Frediano Ziglio <fziglio@redhat.com>
* worker: Free encoders when client disconnectsPavel Grunt2015-11-201-0/+1
| | | | Signed-off-by: Pavel Grunt <pgrunt@redhat.com>
* worker: move stream_clip_item_unref()Marc-André Lureau2015-11-201-12/+2
| | | | Acked-by: Fabiano Fidêncio <fidencio@redhat.com>
* worker: merge red_draw_qxl_drawable in drawable_drawMarc-André Lureau2015-11-201-13/+9
| | | | Acked-by: Fabiano Fidêncio <fidencio@redhat.com>
* worker: move dcc_pixmap_cache_addMarc-André Lureau2015-11-201-91/+0
| | | | Acked-by: Fabiano Fidêncio <fidencio@redhat.com>
* worker: move dcc_freeze_glzMarc-André Lureau2015-11-201-11/+1
| | | | Acked-by: Fabiano Fidêncio <fidencio@redhat.com>
* worker: few function renamesMarc-André Lureau2015-11-201-9/+12
| | | | Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
* worker: add display_channel_free_glz_drawables_to_free()Marc-André Lureau2015-11-201-26/+1
| | | | Acked-by: Fabiano Fidêncio <fidencio@redhat.com>
* worker: move dcc_free_glz_drawable_instanceMarc-André Lureau2015-11-201-48/+2
| | | | Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
* worker: move display_channel_flush_all_surfacesMarc-André Lureau2015-11-201-19/+3
| | | | Acked-by: Fabiano Fidêncio <fidencio@redhat.com>
* worker: move compress to dcc_compress_image()Frediano Ziglio2015-11-201-669/+9
| | | | | | Signed-off-by: Marc-André Lureau <marcandre.lureau@gmail.com> Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
* worker: move glz_drawable_count to DisplayChannelFrediano Ziglio2015-11-201-7/+6
| | | | | Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
* worker: move display_channel_wait_for_migrate_dataMarc-André Lureau2015-11-191-31/+0
| | | | Acked-by: Fabiano Fidêncio <fidencio@redhat.com>
* worker: move dcc_start()Marc-André Lureau2015-11-191-218/+19
| | | | | Author: Marc-André Lureau <marcandre.lureau@gmail.com> Acked-by: Fabiano Fidêncio <fidencio@redhat.com>
* worker: start a DisplayChannelClient unitMarc-André Lureau2015-11-191-2/+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>
* worker: simplify GlzDrawableInstanceItem fields nameMarc-André Lureau2015-11-191-6/+6
| | | | Acked-by: Frediano Ziglio <fziglio@redhat.com>
* worker: move encoders to dcc-encodersMarc-André Lureau2015-11-191-532/+16
| | | | | | Signed-off-by: Marc-André Lureau <marcandre.lureau@gmail.com> Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com> Acked-by: Fabiano Fidêncio <fidencio@redhat.com>
* worker: painfully move display_channel_add_drawableMarc-André Lureau2015-11-181-546/+20
| | | | | Acked-by: Jonathon Jongsma <jjongsma@redhat.com> Acked-by: Frediano Ziglio <fziglio@redhat.com>
* worker: add compression parameters to dccMarc-André Lureau2015-11-181-16/+16
| | | | | | | | | | | | | This allow different dcc to have different settings from default one. The parameters are copied initially from default settings but then they can change independently for each client. Even having a single client a future client is not affected by a previous setting on the old dcc. Signed-off-by: Marc-André Lureau <marcandre.lureau@gmail.com> [updated for the preferred compression] Signed-off-by: Pavel Grunt <pgrunt@redhat.com> Acked-by: Frediano Ziglio <fziglio@redhat.com>
* Rename red_display_free_* to dcc_free_*Jonathon Jongsma2015-11-181-11/+11
| | | | Acked-by: Pavel Grunt <pgrunt@redhat.com>
* worker: simplify RedCompressBufMarc-André Lureau2015-11-181-86/+30
| | | | | | | | Make sure an allocated buffer is correctly referenced by the marshaller, and can't be free and reused by mistake. Simplify the code by using GSlice Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
* worker: move surfaces to DisplayChannelMarc-André Lureau2015-11-181-617/+483
| | | | | | | | Ok. this one was painful.Note that in some cases, DCC_TO_DC should be made safer (there used to be a if !dcc guard in some places, although that looks wrong anyway)... Acked-by: Pavel Grunt <pgrunt@redhat.com>
* Move stream creation and maintenance functions to stream.[ch]Jonathon Jongsma2015-11-181-370/+5
| | | | Acked-by: Fabiano Fidêncio <fidencio@redhat.com>
* worker: move stream_agent_stop and friendsMarc-André Lureau2015-11-181-177/+1
| | | | Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
* worker: Remove unused red_show_treePavel Grunt2015-11-181-18/+0
| | | | Acked-by: Frediano Ziglio <fziglio@redhat.com>
* worker: simplify red_marshall_imageFrediano Ziglio2015-11-181-19/+15
| | | | | | | Remove some nested blocks using else if. Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Pavel Grunt <pgrunt@redhat.com>
* worker: Move stream functions to stream.cJonathon Jongsma2015-11-181-97/+8
| | | | Acked-by: Fabiano Fidêncio <fidencio@redhat.com>
* Move some tree item functions to tree.[ch]Jonathon Jongsma2015-11-171-55/+7
| | | | | | | | | | | Also rename some functions slightly: __find_shadow -> tree_item_find_shadow() __contained_by -> tree_item_contained_by() ring_of -> tree_item_container_items(); Acked-by: Fabiano Fidêncio <fidencio@redhat.com> Acked-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
* Move some more drawable functions to display channelJonathon Jongsma2015-11-161-28/+2
| | | | Acked-by: Fabiano Fidêncio <fidencio@redhat.com>
* worker: Rename current_clear() to current_remove_all()Jonathon Jongsma2015-11-161-8/+8
| | | | Acked-by: Pavel Grunt <pgrunt@redhat.com>
* Move dcc_push_stream_agent_clip() to display channelJonathon Jongsma2015-11-161-19/+3
| | | | | | rename to dcc_add_stream_agent_clip() Acked-by: Pavel Grunt <pgrunt@redhat.com>
* server: Duplicate typedef definitions are not allowed in C99Francois Gouget2015-11-161-2/+2
| | | | | | | This fixes some compilation errors with gcc 4.4.7 on RHEL 6. Signed-off-by: Francois Gouget <fgouget@codeweavers.com> Acked-by: Fabiano Fidêncio <fidencio@redhat.com>
* worker: don't use weird RedCompressedBuf nbytes shiftingMarc-André Lureau2015-11-131-19/+22
| | | | | | | Signed-off-by: Marc-André Lureau <marcandre.lureau@gmail.com> Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Pavel Grunt <pgrunt@redhat.com> Acked-by: Fabiano Fidêncio <fidencio@redhat.com>
* worker: fix compiling with COMPRESS_STAT enabledFrediano Ziglio2015-11-121-9/+9
| | | | | | 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>
* worker: Remove usage of streaming_video global in DisplayChannelPavel Grunt2015-11-121-6/+6
| | | | | | | | | Avoid creating streams for every image due to not properly initialized DisplayChannel->stream_video field. Regression since: 4987df8e67f48cde13d39f4e81909f672ae33e29 Acked-by: Frediano Ziglio <fziglio@redhat.com>
* worker: move some tree container functionsMarc-André Lureau2015-11-121-28/+4
| | | | Acked-by: Fabiano Fidêncio <fidencio@redhat.com>
* worker: rename a bit current_add functionsMarc-André Lureau2015-11-121-10/+10
| | | | | Acked-by: Fabiano Fidêncio <fidencio@redhat.com> Acked-by: Frediano Ziglio <fziglio@redhat.com>
* worker: Remove duplicate DISPLAY_CLIENT_TIMEOUT defineJonathon Jongsma2015-11-111-1/+0
| | | | Acked-by: Fabiano Fidêncio <fidencio@redhat.com>
* worker: move RED_WORKER_STAT, make it compile againMarc-André Lureau2015-11-111-167/+55
| | | | Acked-by: Fabiano Fidêncio <fidencio@redhat.com>
* worker: Move drawable utility functions to display channelJonathon Jongsma2015-11-111-92/+3
| | | | | | | | Functions that check the equality of a path, brush, etc are moved the display channel source file to prepare for moving the surfaces to the display channel. Acked-by: Fabiano Fidêncio <fidencio@redhat.com>
* worker: Move is_opaque_item() to tree.hJonathon Jongsma2015-11-111-6/+0
| | | | Acked-by: Fabiano Fidêncio <fidencio@redhat.com>
* worker: move drawable to displayMarc-André Lureau2015-11-111-63/+55
| | | | Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
* worker: move current to displayMarc-André Lureau2015-11-101-12/+17
| | | | Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
* worker: move red_destroy_surface_item()Marc-André Lureau2015-11-101-42/+1
| | | | Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
* worker: move stream to display channelMarc-André Lureau2015-11-101-315/+248
| | | | Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
* worker: move DisplayChannel/DisplayChannelClient functions togetherMarc-André Lureau2015-11-101-163/+164
| | | | | | Signed-off-by: Marc-André Lureau <marcandre.lureau@gmail.com> Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
* worker: rename functions that handle DisplayChannelClientMarc-André Lureau2015-11-101-18/+18
| | | | | | | Signed-off-by: Marc-André Lureau <marcandre.lureau@gmail.com> Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Jonathon Jongsma <jjongsma@redhat.com> Acked-by: Fabiano Fidêncio <fidencio@redhat.com>