summaryrefslogtreecommitdiffstats
path: root/src/opengl/qgl_x11egl.cpp
diff options
context:
space:
mode:
authorTom Cooksey <thomas.cooksey@nokia.com>2009-07-28 13:57:36 (GMT)
committerTom Cooksey <thomas.cooksey@nokia.com>2009-07-29 10:07:16 (GMT)
commit65702aa6b44568946b8c3924a45b9362401d893c (patch)
tree6219bc42277a8ddeb2be7edd1d818179e0fd1462 /src/opengl/qgl_x11egl.cpp
parent78f079016e0dd9b455d74c6a84cfbdb859fd1094 (diff)
downloadQt-65702aa6b44568946b8c3924a45b9362401d893c.zip
Qt-65702aa6b44568946b8c3924a45b9362401d893c.tar.gz
Qt-65702aa6b44568946b8c3924a45b9362401d893c.tar.bz2
Refactor texture_from_pixmap to not re-create the gl surface each bind
Make a clear seperation between the GL texture and the GLX pixmap. A GLXPixmap is valid in any GL context and thus does not need to be re-created every time the pixmap has changed. Reviewed-By: Samuel
Diffstat (limited to 'src/opengl/qgl_x11egl.cpp')
-rw-r--r--src/opengl/qgl_x11egl.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/opengl/qgl_x11egl.cpp b/src/opengl/qgl_x11egl.cpp
index c6904fe..6b90a4f 100644
--- a/src/opengl/qgl_x11egl.cpp
+++ b/src/opengl/qgl_x11egl.cpp
@@ -486,13 +486,19 @@ void QGLWidgetPrivate::recreateEglSurface(bool force)
}
}
-QGLTexture *QGLContextPrivate::bindTextureFromNativePixmap(QPixmap *pm, const qint64 key, bool canInvert)
+
+QGLTexture *QGLContextPrivate::bindTextureFromNativePixmap(QPixmapData*, const qint64 key, bool canInvert)
{
// TODO
return 0;
}
-void QGLTexture::deleteBoundPixmap()
+void QGLContextPrivate::destroyGlSurfaceForPixmap(QPixmapData*)
+{
+ //TODO
+}
+
+void QGLContextPrivate::unbindPixmapFromTexture(QPixmapData*)
{
//TODO
}