diff options
author | Jani Hautakangas <ext-jani.hautakangas@nokia.com> | 2010-05-20 09:46:46 (GMT) |
---|---|---|
committer | Jani Hautakangas <ext-jani.hautakangas@nokia.com> | 2010-05-20 09:46:46 (GMT) |
commit | 98972c1b271de1292b4e46484fe689d62a8b8e62 (patch) | |
tree | 0949cdc38127261bdd28cee8cb3084052bd8c461 /src/gui/kernel/qwidget.cpp | |
parent | b4b4cb3248b987dd6c15908f0b46e131dc2b7cde (diff) | |
download | Qt-98972c1b271de1292b4e46484fe689d62a8b8e62.zip Qt-98972c1b271de1292b4e46484fe689d62a8b8e62.tar.gz Qt-98972c1b271de1292b4e46484fe689d62a8b8e62.tar.bz2 |
QRuntimeGraphicsSystem
QRuntimeGraphicsSystem is a proxy graphics system which
can dynamically switch underlying graphics system on runtime.
For example, switch from hardware accelerated graphics system
to raster graphics system on low GPU memory situation. This
feature is currently supported on Symbian platform.
Task-number: QT-3276
Reviewed-by: Jason Barron
Diffstat (limited to 'src/gui/kernel/qwidget.cpp')
-rw-r--r-- | src/gui/kernel/qwidget.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/gui/kernel/qwidget.cpp b/src/gui/kernel/qwidget.cpp index 60f38f2..064bf03 100644 --- a/src/gui/kernel/qwidget.cpp +++ b/src/gui/kernel/qwidget.cpp @@ -248,9 +248,14 @@ QWidgetPrivate::~QWidgetPrivate() QWindowSurface *QWidgetPrivate::createDefaultWindowSurface() { Q_Q(QWidget); + + QWindowSurface *surface; if (QApplicationPrivate::graphicsSystem()) - return QApplicationPrivate::graphicsSystem()->createWindowSurface(q); - return createDefaultWindowSurface_sys(); + surface = QApplicationPrivate::graphicsSystem()->createWindowSurface(q); + else + surface = createDefaultWindowSurface_sys(); + + return surface; } /*! |