Marc-André Lureau
105fad7e87
worker: don't use weird RedCompressedBuf nbytes shifting
...
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>
2015-11-13 13:43:35 +00:00
Frediano Ziglio
1ab8df03ce
worker: fix compiling with COMPRESS_STAT enabled
...
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-12 13:25:09 +00:00
Pavel Grunt
f4810b0065
worker: Remove usage of streaming_video global in DisplayChannel
...
Avoid creating streams for every image due to not properly initialized
DisplayChannel->stream_video field.
Regression since: 4987df8e67
Acked-by: Frediano Ziglio <fziglio@redhat.com>
2015-11-12 12:32:27 +00:00
Marc-André Lureau
120c9ae38b
worker: move some tree container functions
...
Acked-by: Fabiano Fidêncio <fidencio@redhat.com>
2015-11-12 12:26:47 +00:00
Marc-André Lureau
cc8107c830
worker: rename a bit current_add functions
...
Acked-by: Fabiano Fidêncio <fidencio@redhat.com>
Acked-by: Frediano Ziglio <fziglio@redhat.com>
2015-11-12 12:09:34 +00:00
Jonathon Jongsma
6380c43258
worker: Remove duplicate DISPLAY_CLIENT_TIMEOUT define
...
Acked-by: Fabiano Fidêncio <fidencio@redhat.com>
2015-11-11 15:48:56 +00:00
Marc-André Lureau
7b1d03508d
worker: move RED_WORKER_STAT, make it compile again
...
Acked-by: Fabiano Fidêncio <fidencio@redhat.com>
2015-11-11 15:42:10 +00:00
Jonathon Jongsma
892feff458
worker: Move drawable utility functions to display channel
...
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>
2015-11-11 12:01:29 +00:00
Jonathon Jongsma
0e7617e51f
worker: Move is_opaque_item() to tree.h
...
Acked-by: Fabiano Fidêncio <fidencio@redhat.com>
2015-11-11 11:59:58 +00:00
Marc-André Lureau
a7fc621750
worker: move drawable to display
...
Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
2015-11-11 09:53:40 +00:00
Marc-André Lureau
7b3f277a72
worker: move current to display
...
Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
2015-11-10 17:38:48 +00:00
Marc-André Lureau
4a1668a755
worker: move red_destroy_surface_item()
...
Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
2015-11-10 17:38:48 +00:00
Marc-André Lureau
4987df8e67
worker: move stream to display channel
...
Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
2015-11-10 17:38:39 +00:00
Marc-André Lureau
5a216d2eb1
worker: move DisplayChannel/DisplayChannelClient functions together
...
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>
2015-11-10 17:18:45 +00:00
Marc-André Lureau
921ec344bc
worker: rename functions that handle DisplayChannelClient
...
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>
2015-11-10 16:10:07 +00:00
Marc-André Lureau
885557f117
worker: move stream functions to a new stream.c file
...
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>
2015-11-10 16:09:28 +00:00
Marc-André Lureau
1e4abdc15d
worker: move stream definitions to a new stream.h file
...
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-10 16:06:08 +00:00
Marc-André Lureau
ab2e8a9cc0
worker: fix RED_STREAM_TIMOUT macro spelling
...
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Fabiano Fidêncio <fidencio@redhat.com>
2015-11-10 15:43:22 +00:00
Marc-André Lureau
face40e19e
worker: move image cache to display
...
Acked-by: Frediano Ziglio <fziglio@redhat.com>
2015-11-10 10:02:08 +00:00
Marc-André Lureau
1b9d767ca7
worker s/surfaces_dest/surface_deps
...
Acked-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
2015-11-10 09:35:42 +00:00
Marc-André Lureau
9c57505849
worker: group add_memslot
...
Acked-by: Frediano Ziglio <fziglio@redhat.com>
2015-11-09 17:03:34 +00:00
Marc-André Lureau
873639abf7
worker: remove unused NUM_CURSORS define
...
Acked-by: Frediano Ziglio <fziglio@redhat.com>
2015-11-09 16:59:28 +00:00
Marc-André Lureau
66ed1f63b8
worker: make more functions static
...
Acked-by: Pavel Grunt <pgrunt@redhat.com>
2015-11-09 14:51:19 +00:00
Marc-André Lureau
df716c5c53
worker: remove unused function
...
Acked-by: Pavel Grunt <pgrunt@redhat.com>
2015-11-09 14:50:45 +00:00
Marc-André Lureau
7eee2de67c
worker: rename {put,ref}_red_drawable
...
Acked-by: Pavel Grunt <pgrunt@redhat.com>
2015-11-09 14:34:45 +00:00
Marc-André Lureau
88ce49b661
worker: s/destroy_surface/surface_unref
...
Acked-by: Frediano Ziglio <fziglio@redhat.com>
2015-11-09 11:34:43 +00:00
Frediano Ziglio
4ef2618f52
worker: remove unused parameter from remove_shadow
...
Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
2015-11-09 10:46:50 +00:00
Marc-André Lureau
e2a3d57735
worker: remove some useless counters
...
Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
2015-11-09 10:46:36 +00:00
Marc-André Lureau
452edd8f7a
server: create display and cursor channels in RedWorker constructor
...
Instead of requiring the dispatcher to send a message to the worker to
create the display channel and cursor channel, just create them when
the worker is created.
Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
2015-11-09 10:24:21 +00:00
Marc-André Lureau
ff1b0b88b8
worker: use RED_CHANNEL_CLIENT for dcc
...
Acked-by: Fabiano Fidêncio <fidencio@redhat.com>
2015-11-06 13:38:03 +00:00
Marc-André Lureau
e76f402952
worker: move shadow_new() and container_new()
...
Acked-by: Fabiano Fidêncio <fidencio@redhat.com>
2015-11-06 10:10:40 +00:00
Marc-André Lureau
c9bb089869
worker: use more DCC_TO_WORKER
...
Acked-by: Fabiano Fidêncio <fidencio@redhat.com>
2015-11-06 10:03:12 +00:00
Marc-André Lureau
ed70743f7c
worker: move some compress stats to display
...
Acked-by: Fabiano Fidêncio <fidencio@redhat.com>
2015-11-06 09:35:16 +00:00
Marc-André Lureau
e839dc23b3
worker: rename WORKER_FOREACH_DCC_SAFE macro to FOREACH_DCC
...
Acked-by: Fabiano Fidêncio <fidencio@redhat.com>
2015-11-06 09:28:49 +00:00
Marc-André Lureau
de1ab756b0
worker: remove unused WORKER_TO_DCC macro
...
Acked-by: Fabiano Fidêncio <fidencio@redhat.com>
2015-11-06 09:23:02 +00:00
Marc-André Lureau
13888ae6a2
worker: rename red_pipe_add_drawable* to dcc_add_drawable*
...
Acked-by: Fabiano Fidêncio <fidencio@redhat.com>
2015-11-06 09:22:51 +00:00
Marc-André Lureau
f1c7bca4d4
worker: move delta computation
...
Move delta computation from red_add_drawable to red_current_add_with_shadow.
Acked-by: Fabiano Fidêncio <fidencio@redhat.com>
2015-11-06 09:16:02 +00:00
Marc-André Lureau
e603e96837
worker: move MonitorsConfig to display channel
...
Acked-by: Fabiano Fidêncio <fidencio@redhat.com>
2015-11-05 12:40:55 +00:00
Marc-André Lureau
81cf3997db
worker: minor simplification
...
Acked-by: Fabiano Fidêncio <fidencio@redhat.com>
2015-11-05 11:13:25 +00:00
Frediano Ziglio
63b8ea5afb
worker: don't process drawable if it can't be allocated
...
Acked-by: Fabiano Fidêncio <fidencio@redhat.com>
2015-11-05 11:12:55 +00:00
Marc-André Lureau
d29ebe4590
worker: move DisplayChannel struct
...
Acked-by: Frediano Ziglio <fziglio@redhat.com>
2015-11-05 11:12:29 +00:00
Jonathon Jongsma
ac53e6a3c3
style: prefer early return to large if blocks
...
Acked-by: Frediano Ziglio <fziglio@redhat.com>
2015-11-04 18:25:50 +00:00
Marc-André Lureau
5f1bdb2166
worker: Move some dpi code to display channel
...
This commit moves some DrawablePipeItem declarations to
display-channel.h, though the function implementations remain in
red_worker.c until they can be disentangled some more.
Acked-by: Frediano Ziglio <fziglio@redhat.com>
2015-11-04 13:03:53 +00:00
Jonathon Jongsma
cf3ca136e6
Palette cache: Use correct marshal function
...
In order to invalidate a single palette cache item, we were using
spice_marshall_msg_cursor_inval_one(), which is the marshal function
used to send an invalidation message for the Cursor channel's cache.
This didn't cause any problems because SPICE_MSG_CURSOR_INVAL_ONE and
SPICE_MSG_DISPLAY_INVAL_PALETTE have the same message ID and parameters,
but it's better to use the correct marshalling function.
Acked-by: Frediano Ziglio <fziglio@redhat.com>
2015-11-04 11:09:35 +00:00
Marc-André Lureau
d8f89125fb
Various changes in RedWorker and CursorChannel related to error and warning messages.
...
Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
Acked-by: Frediano Ziglio <fziglio@redhat.com>
2015-11-04 10:27:09 +00:00
Marc-André Lureau
fae3f7a062
Move monitors_config to display
...
Acked-by: Fabiano Fidêncio <fidencio@redhat.com>
2015-11-04 10:00:08 +00:00
Marc-André Lureau
791d5a2d46
s/process_drawable/process_draw
...
Acked-by: Fabiano Fidêncio <fidencio@redhat.com>
2015-11-04 09:46:38 +00:00
Marc-André Lureau
b323afa6e8
server: move renderer members to DisplayChannel
...
Acked-by: Frediano Ziglio <fziglio@redhat.com>
2015-11-03 17:18:33 +00:00
Frediano Ziglio
996ce40d7f
worker: remove only assigned set_client_capabilities_pending field
...
This field is only assigned and never readed so can be removed.
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Fabiano Fidêncio <fidencio@redhat.com>
2015-11-03 16:36:51 +00:00
Marc-André Lureau
23e17c2fc9
server: move bitmap related to spice-bitmap-utils
...
Also remove some unused function parameters from
bitmap_get_graduality_level()
Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
2015-11-03 16:32:26 +00:00