summaryrefslogtreecommitdiffstats
path: root/src/openvg/qvg_p.h
diff options
context:
space:
mode:
authorRhys Weatherley <rhys.weatherley@nokia.com>2009-09-25 07:44:10 +1000
committerRhys Weatherley <rhys.weatherley@nokia.com>2009-09-25 07:44:10 +1000
commitf6dee67827e72a0660f37998dafb18c6ccd9834e (patch)
tree0966b303e93d1c66ece0e33014a0a99c086f6d84 /src/openvg/qvg_p.h
parenteff806304094a46737846fc1bdac62e085e12404 (diff)
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.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/openvg/qvg_p.h b/src/openvg/qvg_p.h
index 764e98feef..04e2babbea 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);