writer_->writeClientInit(shared);
}
+void CConnection::setDesktopSize(int w, int h)
+{
+ CMsgHandler::setDesktopSize(w,h);
+}
+
+void CConnection::setExtendedDesktopSize(unsigned reason,
+ unsigned result,
+ int w, int h,
+ const ScreenSet& layout)
+{
+ CMsgHandler::setExtendedDesktopSize(reason, result, w, h, layout);
+}
+
+void CConnection::framebufferUpdateStart()
+{
+ CMsgHandler::framebufferUpdateStart();
+}
+
+void CConnection::framebufferUpdateEnd()
+{
+ CMsgHandler::framebufferUpdateEnd();
+}
+
void CConnection::dataRect(const Rect& r, int encoding)
{
decoder.decodeRect(r, encoding, framebuffer);
// Methods overridden from CMsgHandler
+ // Note: These must be called by any deriving classes
+
+ virtual void setDesktopSize(int w, int h);
+ virtual void setExtendedDesktopSize(unsigned reason, unsigned result,
+ int w, int h,
+ const ScreenSet& layout);
+
+ virtual void framebufferUpdateStart();
+ virtual void framebufferUpdateEnd();
virtual void dataRect(const Rect& r, int encoding);
void CConn::framebufferUpdateStart()
{
+ CConnection::framebufferUpdateStart();
+
startCpuCounter();
}
void CConn::framebufferUpdateEnd()
{
+ CConnection::framebufferUpdateEnd();
+
endCpuCounter();
cpuTime += getCpuCounter();
void CConn::framebufferUpdateStart()
{
+ CConnection::framebufferUpdateStart();
+
updates.clear();
startCpuCounter();
}
rfb::PixelBuffer* pb = getFramebuffer();
rfb::Region clip(pb->getRect());
+ CConnection::framebufferUpdateEnd();
+
endCpuCounter();
decodeTime += getCpuCounter();
// one.
void CConn::framebufferUpdateStart()
{
+ CConnection::framebufferUpdateStart();
+
// Note: This might not be true if sync fences are supported
pendingUpdate = false;
// appropriately, and then request another incremental update.
void CConn::framebufferUpdateEnd()
{
+ CConnection::framebufferUpdateEnd();
+
Fl::remove_timeout(handleUpdateTimeout, this);
desktop->updateWindow();