summaryrefslogtreecommitdiffstats
path: root/vncviewer/Viewport.h
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2014-02-06 16:31:10 +0100
committerPierre Ossman <ossman@cendio.se>2014-07-07 14:55:27 +0200
commita32040d7c9972f70272218effbc0242416d417d2 (patch)
treeb6ef6c797262da99af6907154b014a65acb15b60 /vncviewer/Viewport.h
parent2e5a10608394186fd1324c97b17d7f08e0c0aaf6 (diff)
downloadtigervnc-a32040d7c9972f70272218effbc0242416d417d2.tar.gz
tigervnc-a32040d7c9972f70272218effbc0242416d417d2.zip
Provide a better R/W base PixelBuffer class
Clearly separates the read API from the write API and also from actual implementation.
Diffstat (limited to 'vncviewer/Viewport.h')
-rw-r--r--vncviewer/Viewport.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/vncviewer/Viewport.h b/vncviewer/Viewport.h
index bd17655a..e112efda 100644
--- a/vncviewer/Viewport.h
+++ b/vncviewer/Viewport.h
@@ -56,8 +56,7 @@ public:
void copyRect(const rfb::Rect& r, int srcX, int srcY);
rdr::U8* getBufferRW(const rfb::Rect& r, int* stride);
-
- void damageRect(const rfb::Rect& r);
+ void commitBufferRW(const rfb::Rect& r);
void setCursor(int width, int height, const rfb::Point& hotspot,
void* data, void* mask);
@@ -72,6 +71,8 @@ public:
private:
+ void damageRect(const rfb::Rect& r);
+
PlatformPixelBuffer* createFramebuffer(int w, int h);
static void handleUpdateTimeout(void *data);