summaryrefslogtreecommitdiffstats
path: root/src/opengl/qgraphicssystem_gl.cpp
diff options
context:
space:
mode:
authorJani Hautakangas <jani.hautakangas@nokia.com>2011-05-10 08:08:59 (GMT)
committerJani Hautakangas <jani.hautakangas@nokia.com>2011-05-10 10:14:19 (GMT)
commitae245c770449f3cc8629d9d9836ef9c03486b852 (patch)
treecfec5a38f9d2a23b0f598225dce86f62ed870b4c /src/opengl/qgraphicssystem_gl.cpp
parent0ec06f76484d64676bcd8b981b54593cdb8b539e (diff)
downloadQt-ae245c770449f3cc8629d9d9836ef9c03486b852.zip
Qt-ae245c770449f3cc8629d9d9836ef9c03486b852.tar.gz
Qt-ae245c770449f3cc8629d9d9836ef9c03486b852.tar.bz2
Introduce platform extension to QGraphicsSystem
Qt on Symbian needs some special capabilities to be able to work on 32MB GPU. This patch introduces some Symbian specific functions to QGraphicsSystem Task-number: QTBUG-17882 Reviewed-by: Laszlo Agocs
Diffstat (limited to 'src/opengl/qgraphicssystem_gl.cpp')
-rw-r--r--src/opengl/qgraphicssystem_gl.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/opengl/qgraphicssystem_gl.cpp b/src/opengl/qgraphicssystem_gl.cpp
index 0aa3c2e..5a01d8c 100644
--- a/src/opengl/qgraphicssystem_gl.cpp
+++ b/src/opengl/qgraphicssystem_gl.cpp
@@ -104,11 +104,17 @@ QWindowSurface *QGLGraphicsSystem::createWindowSurface(QWidget *widget) const
return new QGLWindowSurface(widget);
}
-#ifdef QGL_USE_TEXTURE_POOL
-void QGLGraphicsSystem::releaseCachedResources()
+#ifdef Q_OS_SYMBIAN
+void QGLGraphicsSystem::releaseCachedGpuResources()
{
QGLTexturePool::instance()->hibernate();
}
+
+QGraphicsSystemEx* QGLGraphicsSystem::platformExtension()
+{
+ return this;
+}
#endif
+
QT_END_NAMESPACE