summaryrefslogtreecommitdiffstats
path: root/src/opengl/qgraphicssystem_gl_p.h
diff options
context:
space:
mode:
authorJani Hautakangas <jani.hautakangas@nokia.com>2011-03-07 22:26:05 (GMT)
committerJani Hautakangas <jani.hautakangas@nokia.com>2011-03-15 17:09:32 (GMT)
commit2355774b061d9e7213634ddec3c50280c4b10b70 (patch)
treeb7f1b95a4839c2f6cc4f0cd119fd31aeb3929c15 /src/opengl/qgraphicssystem_gl_p.h
parentb3b332a50a6288164ca86d0691e9615f9c19abda (diff)
downloadQt-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_p.h')
-rw-r--r--src/opengl/qgraphicssystem_gl_p.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/opengl/qgraphicssystem_gl_p.h b/src/opengl/qgraphicssystem_gl_p.h
index 4630da1..5829dcc 100644
--- a/src/opengl/qgraphicssystem_gl_p.h
+++ b/src/opengl/qgraphicssystem_gl_p.h
@@ -66,6 +66,10 @@ public:
QPixmapData *createPixmapData(QPixmapData::PixelType type) const;
QWindowSurface *createWindowSurface(QWidget *widget) const;
+
+#ifdef QGL_USE_TEXTURE_POOL
+ void releaseCachedResources();
+#endif
private:
bool m_useX11GL;
};