diff options
author | Jani Hautakangas <jani.hautakangas@nokia.com> | 2011-03-07 22:26:05 (GMT) |
---|---|---|
committer | Jani Hautakangas <jani.hautakangas@nokia.com> | 2011-03-15 17:09:32 (GMT) |
commit | 2355774b061d9e7213634ddec3c50280c4b10b70 (patch) | |
tree | b7f1b95a4839c2f6cc4f0cd119fd31aeb3929c15 /src/opengl/qgraphicssystem_gl.cpp | |
parent | b3b332a50a6288164ca86d0691e9615f9c19abda (diff) | |
download | Qt-2355774b061d9e7213634ddec3c50280c4b10b70.zip Qt-2355774b061d9e7213634ddec3c50280c4b10b70.tar.gz Qt-2355774b061d9e7213634ddec3c50280c4b10b70.tar.bz2 |
Initial implementation of GLES2.0 resource pooling
Keep the implementation in separate
qpixmapdata_poolgl.cpp file until the pooling has
been verified and confirmed to work ok.
Task-number: QTBUG-15253 QTBUG-17850
Reviewed-by: Samuel Rødal
Diffstat (limited to 'src/opengl/qgraphicssystem_gl.cpp')
-rw-r--r-- | src/opengl/qgraphicssystem_gl.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/opengl/qgraphicssystem_gl.cpp b/src/opengl/qgraphicssystem_gl.cpp index 3574756..0aa3c2e 100644 --- a/src/opengl/qgraphicssystem_gl.cpp +++ b/src/opengl/qgraphicssystem_gl.cpp @@ -57,6 +57,10 @@ #include <QtGui/private/qapplication_p.h> #endif +#ifdef QGL_USE_TEXTURE_POOL +#include "private/qgltexturepool_p.h" +#endif + QT_BEGIN_NAMESPACE extern QGLWidget *qt_gl_getShareWidget(); @@ -100,6 +104,11 @@ QWindowSurface *QGLGraphicsSystem::createWindowSurface(QWidget *widget) const return new QGLWindowSurface(widget); } - +#ifdef QGL_USE_TEXTURE_POOL +void QGLGraphicsSystem::releaseCachedResources() +{ + QGLTexturePool::instance()->hibernate(); +} +#endif QT_END_NAMESPACE |