egl: store the native surface pointer in struct _egl_surface
[mesa.git] / src / egl / main / eglsurface.h
index df8e2e6bdfb80f4f478996a79aae9618f92f28ec..903957a6eb307c0cc9661f753674131b74fdaf33 100644 (file)
@@ -170,12 +170,15 @@ struct _egl_surface
    EGLBoolean PostSubBufferSupportedNV;
 
    struct _egl_hdr_metadata HdrMetadata;
+
+   void *NativeSurface;
 };
 
 
 extern EGLBoolean
 _eglInitSurface(_EGLSurface *surf, _EGLDisplay *disp, EGLint type,
-                _EGLConfig *config, const EGLint *attrib_list);
+                _EGLConfig *config, const EGLint *attrib_list,
+                void *native_surface);
 
 
 extern EGLBoolean