diff options
author | Julien Brianceau <jbrianceau@nds.com> | 2012-09-13 07:11:44 (GMT) |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-09-13 16:44:40 (GMT) |
commit | ce07e385797cb6c031a3b182e9b83ed3cf7cea75 (patch) | |
tree | 169824e8d78f4663dd092ba3112f74e84b5b0414 /src/plugins | |
parent | 86f965de44c9b8285d84ac60254276ede4f743eb (diff) | |
download | Qt-ce07e385797cb6c031a3b182e9b83ed3cf7cea75.zip Qt-ce07e385797cb6c031a3b182e9b83ed3cf7cea75.tar.gz Qt-ce07e385797cb6c031a3b182e9b83ed3cf7cea75.tar.bz2 |
qpa: improve DirectFB performance
QDirectFbWindowSurface::resize() must call parent
QWindowSurface::resize() method in order to update QWindowSurfacePrivate
size.
Change-Id: Icd605dc1923f2560579ccb2e4f800c80ff7e92fd
Reviewed-by: Holger Freyther <holger+qt@freyther.de>
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/platforms/directfb/qdirectfbwindowsurface.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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); } |