From 9f273e9cd806288a37d1aae2d9f9ddae7262b8e5 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Mon, 9 Nov 2015 16:34:54 +0100 Subject: Delegate decoder object management to a separate class Done in preparation for multi-core decoding. Keeps the complexity out of the other classes. This also moves ownership of the framebuffer in to CConnection. It's the CConnection object that is aware of the threads and how to synchronise with them. Therefore the ownership of the framebuffer must also be there to make sure it isn't deleted whilst threads are working. --- vncviewer/CConn.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'vncviewer/CConn.h') diff --git a/vncviewer/CConn.h b/vncviewer/CConn.h index 06e3040c..c934f3da 100644 --- a/vncviewer/CConn.h +++ b/vncviewer/CConn.h @@ -23,10 +23,9 @@ #include #include -#include -#include +#include -namespace rfb { class Decoder; } +namespace network { class Socket; } class DesktopWindow; @@ -96,8 +95,6 @@ private: bool pendingPFChange; rfb::PixelFormat pendingPF; - rfb::Decoder *decoders[rfb::encodingMax+1]; - int currentEncoding, lastServerEncoding; bool formatChange; -- cgit v1.2.3