diff options
author | Rhys Weatherley <rhys.weatherley@nokia.com> | 2009-09-24 21:44:10 (GMT) |
---|---|---|
committer | Rhys Weatherley <rhys.weatherley@nokia.com> | 2009-09-24 21:44:10 (GMT) |
commit | f6dee67827e72a0660f37998dafb18c6ccd9834e (patch) | |
tree | 0966b303e93d1c66ece0e33014a0a99c086f6d84 /src/openvg/qvg_p.h | |
parent | eff806304094a46737846fc1bdac62e085e12404 (diff) | |
download | Qt-f6dee67827e72a0660f37998dafb18c6ccd9834e.zip Qt-f6dee67827e72a0660f37998dafb18c6ccd9834e.tar.gz Qt-f6dee67827e72a0660f37998dafb18c6ccd9834e.tar.bz2 |
Push the "lazy doneCurrent" logic down from QtOpenVG into QEgl
QtOpenVG was doing a lot of housekeeping to avoid having to
switch EGL contexts if the same surface was used over and over.
This housekeeping really belongs in the QEgl layer so that
QtOpenGL could potentially use it as well.
This change also adds some overrides for makeCurrent(),
swapBuffers(), and destroySurface() that take an EGLSurface
directly. This is the first step in separating EGL surface
management from context management.
Reviewed-by: Sarah Smith
Diffstat (limited to 'src/openvg/qvg_p.h')
-rw-r--r-- | src/openvg/qvg_p.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/openvg/qvg_p.h b/src/openvg/qvg_p.h index 764e98f..04e2bab 100644 --- a/src/openvg/qvg_p.h +++ b/src/openvg/qvg_p.h @@ -81,15 +81,6 @@ Q_OPENVG_EXPORT void qt_vg_destroy_context(QEglContext *context); // destroy VGImage objects when there is no other surface available. Q_OPENVG_EXPORT EGLSurface qt_vg_shared_surface(void); -// Make a context current with a specific surface. -Q_OPENVG_EXPORT void qt_vg_make_current(QEglContext *context, EGLSurface surface); - -// Make a context uncurrent. -Q_OPENVG_EXPORT void qt_vg_done_current(QEglContext *context, bool force = false); - -// Destroy a surface that was previously associated with a context. -Q_OPENVG_EXPORT void qt_vg_destroy_surface(QEglContext *context, EGLSurface surface); - // Convert the configuration format in a context to a VG or QImage format. Q_OPENVG_EXPORT VGImageFormat qt_vg_config_to_vg_format(QEglContext *context); Q_OPENVG_EXPORT QImage::Format qt_vg_config_to_image_format(QEglContext *context); |