summaryrefslogtreecommitdiffstats
path: root/client/display_channel.h
diff options
context:
space:
mode:
authorIzik Eidus <ieidus@redhat.com>2010-04-03 05:34:48 +0300
committerIzik Eidus <ieidus@redhat.com>2010-04-03 05:34:48 +0300
commit27a8ec1ef476a13734c33f01653af22cc0432800 (patch)
tree6c88d3526cd5d71f24eaf519e46e5899f8b1ee65 /client/display_channel.h
parente9b5846704a65a8e8b59bea65e4711f5e137d2b6 (diff)
downloadspice-27a8ec1ef476a13734c33f01653af22cc0432800.tar.gz
spice-27a8ec1ef476a13734c33f01653af22cc0432800.tar.xz
spice-27a8ec1ef476a13734c33f01653af22cc0432800.zip
spice server: surface create/destroy protocol support
Now we can send commands from the server to the client to destroy surfaces (right now just the primary surface) Needed for offscreens support) Another patch`s on the way. Signed-off-by: Izik Eidus <ieidus@redhat.com>
Diffstat (limited to 'client/display_channel.h')
-rw-r--r--client/display_channel.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/client/display_channel.h b/client/display_channel.h
index b2e37914..d603a265 100644
--- a/client/display_channel.h
+++ b/client/display_channel.h
@@ -131,6 +131,9 @@ private:
void destroy_strams();
void update_cursor();
+ void create_primary_surface(int width, int height, int depth);
+ void destroy_primary_surface();
+
void handle_mode(RedPeer::InMessage* message);
void handle_mark(RedPeer::InMessage* message);
void handle_reset(RedPeer::InMessage* message);
@@ -146,6 +149,9 @@ private:
void handle_stream_destroy(RedPeer::InMessage* message);
void handle_stream_destroy_all(RedPeer::InMessage* message);
+ void handle_surface_create(RedPeer::InMessage* message);
+ void handle_surface_destroy(RedPeer::InMessage* message);
+
void handle_draw_fill(RedPeer::InMessage* message);
void handle_draw_opaque(RedPeer::InMessage* message);
void handle_draw_copy(RedPeer::InMessage* message);
@@ -208,6 +214,8 @@ private:
InterruptUpdate _interrupt_update;
friend class SetModeEvent;
+ friend class CreatePrimarySurfaceEvent;
+ friend class DestroyPrimarySurfaceEvent;
friend class ActivateTimerEvent;
friend class VideoStream;
friend class StreamsTrigger;