src/openvg/qvg_p.h
changeset 3 41300fa6a67c
parent 0 1918ee327afb
child 4 3b1da2848fc7
--- a/src/openvg/qvg_p.h	Tue Jan 26 12:42:25 2010 +0200
+++ b/src/openvg/qvg_p.h	Tue Feb 02 00:43:10 2010 +0200
@@ -71,11 +71,17 @@
 
 // Create an EGL context, but don't bind it to a surface.  If single-context
 // mode is enabled, this will return the previously-created context.
-Q_OPENVG_EXPORT QEglContext *qt_vg_create_context(QPaintDevice *device);
+// "devType" indicates the type of device using the context, usually
+// QInternal::Widget or QInternal::Pixmap.
+Q_OPENVG_EXPORT QEglContext *qt_vg_create_context
+    (QPaintDevice *device, int devType);
 
 // Destroy an EGL context that was created by qt_vg_create_context().
 // If single-context mode is enabled, this will decrease the reference count.
-Q_OPENVG_EXPORT void qt_vg_destroy_context(QEglContext *context);
+// "devType" indicates the type of device destroying the context, usually
+// QInternal::Widget or QInternal::Pixmap.
+Q_OPENVG_EXPORT void qt_vg_destroy_context
+    (QEglContext *context, int devType);
 
 // Return the shared pbuffer surface that can be made current to
 // destroy VGImage objects when there is no other surface available.