From 27a8ec1ef476a13734c33f01653af22cc0432800 Mon Sep 17 00:00:00 2001 From: Izik Eidus Date: Sat, 3 Apr 2010 05:34:48 +0300 Subject: 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 --- client/display_channel.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'client/display_channel.h') 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; -- cgit