summaryrefslogtreecommitdiffstats
path: root/server
Commit message (Collapse)AuthorAgeFilesLines
* display: factor out current_find_intersects_rectHEADmasterMarc-André Lureau2015-11-251-19/+26
| | | | Acked-by: Fabiano Fidêncio <fidencio@redhat.com>
* display: factor out draw_untilMarc-André Lureau2015-11-251-32/+26
| | | | Acked-by: Fabiano Fidêncio <fidencio@redhat.com>
* worker: move display_channel_drawMarc-André Lureau2015-11-252-155/+156
| | | | Acked-by: Frediano Ziglio <fziglio@redhat.com>
* worker: simplify surface_update_dest()Marc-André Lureau2015-11-251-13/+14
| | | | Acked-by: Frediano Ziglio <fziglio@redhat.com>
* server: Remove MJPEG's video callback assertFrancois Gouget2015-11-251-3/+2
| | | | | | | | | | A NULL get_roundtrip_ms() callback simply disables rate control so that mjpeg_encoder_get_source_fps() will not be called. Should it be called despite this, simply return the highest allowed framerate (get_source_fps()'s value is only an estimate anyway). Finally update_client_playback_delay() is always checked before use. Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
* server: Encapsulate the get_source_fps() video encoder callbackFrancois Gouget2015-11-251-7/+12
| | | | Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
* worker: simplify handle_dev_oomFrediano Ziglio2015-11-241-6/+4
| | | | | | | | | Do not check if worker->display_channel is NULL as we are already using to get some field so must be not NULL. Reuse display_red_channel variable. Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Uri Lublin <uril@redhat.com>
* dcc: remove possible dandling pointersFrediano Ziglio2015-11-241-0/+5
| | | | | | | | | Set pointers to NULL after releasing encoders. This to make sure no further access will occurs. Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Victor Toso <victortoso@redhat.com> Acked-by: Pavel Grunt <pgrunt@redhat.com>
* worker: Change validate_area to surface_update_destMarc-André Lureau2015-11-241-7/+4
| | | | Acked-by: Frediano Ziglio <fziglio@redhat.com>
* worker: rename red_connect_cursor and tidy up a bitMarc-André Lureau2015-11-241-13/+10
| | | | | | 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>
* worker: fix constantFrediano Ziglio2015-11-241-1/+1
| | | | | | | Use mnemonic instead of constant to return enumeration value Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Fabiano Fidêncio <fidencio@redhat.com>
* worker: move drawable_drawMarc-André Lureau2015-11-243-247/+248
| | | | | | Acked-by: Fabiano Fidêncio <fabiano@fidencio.org> Acked-by: Jonathon Jongsma <jjongsma@redhat.com> Acked-by: Frediano Ziglio <fziglio@redhat.com>
* worker: remove display_channel prefix from channel callbacksMarc-André Lureau2015-11-241-10/+10
| | | | Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
* worker: move dcc_release_itemMarc-André Lureau2015-11-244-134/+136
| | | | Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
* worker: simplify handle_migrate_data functionsMarc-André Lureau2015-11-241-4/+4
| | | | Acked-by: Fabiano Fidêncio <fidencio@redhat.com>
* worker: move dcc_handle_migrate_dataMarc-André Lureau2015-11-243-158/+143
| | | | Acked-by: Fabiano Fidêncio <fabiano@fidencio.org>
* worker: move attach_streamMarc-André Lureau2015-11-243-57/+56
| | | | Acked-by: Fabiano Fidêncio <fidencio@redhat.com>
* worker: move dcc_add_drawable*Marc-André Lureau2015-11-245-169/+164
| | | | Acked-by: Fabiano Fidêncio <fidencio@redhat.com>
* worker: move dcc_handle_messageMarc-André Lureau2015-11-245-244/+228
| | | | Acked-by: Fabiano Fidêncio <fidencio@redhat.com>
* worker: do not set worker image compression on client requestMarc-André Lureau2015-11-241-3/+2
| | | | | | | | | | | | Display client can ask to change the preferred compression. Previously this setting change the entire worker setting so every future client created would have this setting. Remove the setting in the worker make the change only to the current client. 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: rename update_areaMarc-André Lureau2015-11-232-18/+19
| | | | | Acked-by: Jonathon Jongsma <jjongsma@redhat.com> Acked-by: Fabiano Fidêncio <fabiano@fidencio.org>
* worker: move display_channel_free_someMarc-André Lureau2015-11-235-129/+145
| | | | | Author: Marc-André Lureau <marcandre.lureau@gmail.com> Acked-by: Fabiano Fidêncio <fabiano@fidencio.org>
* worker: replace some precondition checksMarc-André Lureau2015-11-231-41/+20
| | | | Acked-by: Fabiano Fidêncio <fabiano@fidencio.org>
* worker: generalize surface_dirty_region_to_rectsMarc-André Lureau2015-11-231-15/+11
| | | | Acked-by: Fabiano Fidêncio <fabiano@fidencio.org>
* worker: move dcc_add_surface_area_imageMarc-André Lureau2015-11-235-118/+119
| | | | | Author: Marc-André Lureau <marcandre.lureau@gmail.com> Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
* main channel: Remove unused main_channel_client_get_link_idPavel Grunt2015-11-232-6/+0
| | | | | | | | It was introduced in 9cece23ba3e49e6eec9e380daa95d6ee0133c91c but never used. Signed-off-by: Pavel Grunt <pgrunt@redhat.com> Acked-by: Fabiano Fidêncio <fidencio@redhat.com>
* main channel: Remove unused main_channel_push_notifyPavel Grunt2015-11-232-7/+0
| | | | | | | It is not needed since 8d44aa032892ea6643925fa7485d9af32853e127 Signed-off-by: Pavel Grunt <pgrunt@redhat.com> Acked-by: Fabiano Fidêncio <fidencio@redhat.com>
* red channel: Remove unused red_channel_apply_clients_dataPavel Grunt2015-11-232-13/+0
| | | | | | | | It was introduced in 7e8e13593ee681cf04c349bca57dd225d7802494 but never used. Signed-off-by: Pavel Grunt <pgrunt@redhat.com> Acked-by: Fabiano Fidêncio <fidencio@redhat.com>
* red channel: Remove unused declaration of red_channel_pipes_removePavel Grunt2015-11-231-2/+0
| | | | | | | | It was introduced in 09ae4700d27b7c1cca64c2ce4c90f0c6cdf81ccf but never used. Signed-off-by: Pavel Grunt <pgrunt@redhat.com> Acked-by: Fabiano Fidêncio <fidencio@redhat.com>
* red channel: Remove unused red_channel_push_set_ackPavel Grunt2015-11-232-6/+0
| | | | | | | It is not needed since 8e7b22b7861d2859167767822f29749bfe3ecc16 Signed-off-by: Pavel Grunt <pgrunt@redhat.com> Acked-by: Fabiano Fidêncio <fidencio@redhat.com>
* red dispatcher: Remove unused declaration of red_dispatcher_set_mm_timePavel Grunt2015-11-231-1/+0
| | | | | | | It is not used since c541d7e29dc0053e6434d053a50454bb8a7121e9 Signed-off-by: Pavel Grunt <pgrunt@redhat.com> Acked-by: Fabiano Fidêncio <fidencio@redhat.com>
* dispatcher: Remove unused dispatcher_read_messagePavel Grunt2015-11-232-14/+0
| | | | | | | It is not needed since d3153f861065235c2a7a7120375be5db948c5a77 Signed-off-by: Pavel Grunt <pgrunt@redhat.com> Acked-by: Fabiano Fidêncio <fidencio@redhat.com>
* worker: move red_drawable_count to DisplayChannelFrediano Ziglio2015-11-232-7/+7
| | | | | Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Pavel Grunt <pgrunt@redhat.com>
* reuse red_get_monotonic_time functionFrediano Ziglio2015-11-233-24/+8
| | | | | Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Pavel Grunt <pgrunt@redhat.com>
* server: remove OpenGLMarc-André Lureau2015-11-218-143/+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 red_stream_ prefix from mjpeg callbacksMarc-André Lureau2015-11-211-6/+6
| | | | | Author: Marc-André Lureau <marcandre.lureau@gmail.com> Acked-by: Frediano Ziglio <fziglio@redhat.com>
* stream: rename {red_stream_, }get_initial_bit_rateMarc-André Lureau2015-11-211-3/+2
| | | | | Author: Marc-André Lureau <marcandre.lureau@gmail.com> Acked-by: Frediano Ziglio <fziglio@redhat.com>
* stream: remove dcc parameter from stream_agent_stop()Marc-André Lureau2015-11-213-4/+5
| | | | | Author: Marc-André Lureau <marcandre.lureau@gmail.com> Acked-by: Frediano Ziglio <fziglio@redhat.com>
* worker: move more free_glz_drawableMarc-André Lureau2015-11-205-76/+78
| | | | | Acked-by: Fabiano Fidêncio <fidencio@redhat.com> Acked-by: Frediano Ziglio <fziglio@redhat.com>
* worker: Free encoders when client disconnectsPavel Grunt2015-11-203-0/+13
| | | | Signed-off-by: Pavel Grunt <pgrunt@redhat.com>
* dcc: Fix unused display_channel variablePavel Grunt2015-11-201-3/+2
| | | | | | | | | | Avoid problem when compiling with lz4 and without COMPRESS_STAT dcc.c: In function 'dcc_compress_image_lz4': dcc.c:657:21: error: unused variable 'display_channel' [-Werror=unused-variable] DisplayChannel *display_channel = DCC_TO_DC(dcc); Acked-by: Frediano Ziglio <fziglio@redhat.com>
* worker: move stream_clip_item_unref()Marc-André Lureau2015-11-203-14/+18
| | | | 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-203-91/+92
| | | | Acked-by: Fabiano Fidêncio <fidencio@redhat.com>
* worker: move dcc_freeze_glzMarc-André Lureau2015-11-203-11/+11
| | | | 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-205-26/+33
| | | | Acked-by: Fabiano Fidêncio <fidencio@redhat.com>
* worker: move dcc_free_glz_drawable_instanceMarc-André Lureau2015-11-203-48/+52
| | | | Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
* worker: move display_channel_flush_all_surfacesMarc-André Lureau2015-11-203-19/+15
| | | | Acked-by: Fabiano Fidêncio <fidencio@redhat.com>
* worker: move compress to dcc_compress_image()Frediano Ziglio2015-11-205-669/+681
| | | | | | 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>