From ce07e385797cb6c031a3b182e9b83ed3cf7cea75 Mon Sep 17 00:00:00 2001 From: Julien Brianceau Date: Thu, 13 Sep 2012 09:11:44 +0200 Subject: qpa: improve DirectFB performance MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit QDirectFbWindowSurface::resize() must call parent QWindowSurface::resize() method in order to update QWindowSurfacePrivate size. Change-Id: Icd605dc1923f2560579ccb2e4f800c80ff7e92fd Reviewed-by: Holger Freyther Reviewed-by: Samuel Rødal --- src/plugins/platforms/directfb/qdirectfbwindowsurface.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/plugins/platforms/directfb/qdirectfbwindowsurface.cpp b/src/plugins/platforms/directfb/qdirectfbwindowsurface.cpp index 5d03c26..236fdb2 100644 --- a/src/plugins/platforms/directfb/qdirectfbwindowsurface.cpp +++ b/src/plugins/platforms/directfb/qdirectfbwindowsurface.cpp @@ -83,6 +83,10 @@ void QDirectFbWindowSurface::flush(QWidget *widget, const QRegion ®ion, const void QDirectFbWindowSurface::resize(const QSize &size) { + if (size == QWindowSurface::size()) + return; + + QWindowSurface::resize(size); QDirectFbBlitter *blitter = new QDirectFbBlitter(size, m_dfbSurface.data()); m_pmdata->setBlittable(blitter); } -- cgit v0.12