summaryrefslogtreecommitdiff
path: root/src/opengl/qpixmapdata_gl_p.h
diff options
context:
space:
mode:
authorSamuel Rødal <sroedal@trolltech.com>2009-07-02 09:41:40 +0200
committerSamuel Rødal <sroedal@trolltech.com>2009-07-02 10:05:37 +0200
commitef9fad3391f7b5c59d3fe62b491a4760c2917810 (patch)
treec574b08cbe0504dacd2f6f021d74e10c39a94a54 /src/opengl/qpixmapdata_gl_p.h
parentf86a6467c0dbfd54603b588e6c001265b0d527e3 (diff)
downloadqt4-tools-ef9fad3391f7b5c59d3fe62b491a4760c2917810.tar.gz
Refactored the GL QPixmap backend to use an FBO pool class.
The FBO pool will be useful in other places as well, plus it makes it easier to deal with graphics memory management issues.
Diffstat (limited to 'src/opengl/qpixmapdata_gl_p.h')
-rw-r--r--src/opengl/qpixmapdata_gl_p.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/opengl/qpixmapdata_gl_p.h b/src/opengl/qpixmapdata_gl_p.h
index a6aa22d092..aaeb8ac404 100644
--- a/src/opengl/qpixmapdata_gl_p.h
+++ b/src/opengl/qpixmapdata_gl_p.h
@@ -61,6 +61,19 @@ QT_BEGIN_NAMESPACE
class QPaintEngine;
class QGLFramebufferObject;
+class QGLFramebufferObjectFormat;
+
+class QGLFramebufferObjectPool
+{
+public:
+ QGLFramebufferObject *acquire(const QSize &size, const QGLFramebufferObjectFormat &format);
+ void release(QGLFramebufferObject *fbo);
+
+private:
+ QList<QGLFramebufferObject *> m_fbos;
+};
+
+QGLFramebufferObjectPool* qgl_fbo_pool();
class QGLPixmapData : public QPixmapData
{