diff options
author | DRC <dcommander@users.sourceforge.net> | 2011-11-03 18:49:21 +0000 |
---|---|---|
committer | DRC <dcommander@users.sourceforge.net> | 2011-11-03 18:49:21 +0000 |
commit | 33c15e3a3a1db376feae90ef7521a107dd957752 (patch) | |
tree | 07a01bd47e977a94b2ead9d406fec736e0b613b4 /vncviewer/DesktopWindow.h | |
parent | 3004cb640aba2ed81d31444064aa8087990c7212 (diff) | |
download | tigervnc-33c15e3a3a1db376feae90ef7521a107dd957752.tar.gz tigervnc-33c15e3a3a1db376feae90ef7521a107dd957752.zip |
If the client and server are using identical pixel formats, then perform Tight decoding directly into the viewer's back buffer, rather than going through the slow fillRect/imageRect routines.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4757 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'vncviewer/DesktopWindow.h')
-rw-r--r-- | vncviewer/DesktopWindow.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/vncviewer/DesktopWindow.h b/vncviewer/DesktopWindow.h index a190b700..fbb5f954 100644 --- a/vncviewer/DesktopWindow.h +++ b/vncviewer/DesktopWindow.h @@ -61,6 +61,13 @@ public: viewport->copyRect(r, srcX, srcY); } + rdr::U8* getPixelsRW(const rfb::Rect& r, int* stride) { + return viewport->getPixelsRW(r, stride); + } + void damageRect(const rfb::Rect& r) { + viewport->damageRect(r); + } + void resizeFramebuffer(int new_w, int new_h); void setCursor(int width, int height, const rfb::Point& hotspot, |