From 3da238dee89906d952487fbe0d138dac1f5df3ea Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Thu, 12 Nov 2015 12:20:05 +0100 Subject: Let CConnection intercept more callbacks We need more callbacks for correct operation of multi-threaded rect decoding. --- tests/decperf.cxx | 4 ++++ tests/encperf.cxx | 4 ++++ 2 files changed, 8 insertions(+) (limited to 'tests') 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(); -- cgit v1.2.3