summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2015-11-12 12:20:05 +0100
committerPierre Ossman <ossman@cendio.se>2015-11-27 11:06:59 +0100
commit3da238dee89906d952487fbe0d138dac1f5df3ea (patch)
tree9a5d1ac268bceaa3539f54671ea2e093414875a9 /tests
parent687d52c9afa5b2d7c0b677eb3a27b2a550742d11 (diff)
downloadtigervnc-3da238dee89906d952487fbe0d138dac1f5df3ea.tar.gz
tigervnc-3da238dee89906d952487fbe0d138dac1f5df3ea.zip
Let CConnection intercept more callbacks
We need more callbacks for correct operation of multi-threaded rect decoding.
Diffstat (limited to 'tests')
-rw-r--r--tests/decperf.cxx4
-rw-r--r--tests/encperf.cxx4
2 files changed, 8 insertions, 0 deletions
diff --git a/tests/decperf.cxx b/tests/decperf.cxx
index dfd8a907..a200e5b4 100644
--- a/tests/decperf.cxx
+++ b/tests/decperf.cxx
@@ -99,11 +99,15 @@ void CConn::setCursor(int, int, const rfb::Point&, void*, void*)
void CConn::framebufferUpdateStart()
{
+ CConnection::framebufferUpdateStart();
+
startCpuCounter();
}
void CConn::framebufferUpdateEnd()
{
+ CConnection::framebufferUpdateEnd();
+
endCpuCounter();
cpuTime += getCpuCounter();
diff --git a/tests/encperf.cxx b/tests/encperf.cxx
index 06c878d4..21116089 100644
--- a/tests/encperf.cxx
+++ b/tests/encperf.cxx
@@ -208,6 +208,8 @@ void CConn::setCursor(int, int, const rfb::Point&, void*, void*)
void CConn::framebufferUpdateStart()
{
+ CConnection::framebufferUpdateStart();
+
updates.clear();
startCpuCounter();
}
@@ -218,6 +220,8 @@ void CConn::framebufferUpdateEnd()
rfb::PixelBuffer* pb = getFramebuffer();
rfb::Region clip(pb->getRect());
+ CConnection::framebufferUpdateEnd();
+
endCpuCounter();
decodeTime += getCpuCounter();