[cairo-commit] glitz/src/egl glitz-egl.h, 1.1, 1.2 glitz_egl_surface.c, 1.1, 1.2 glitz_eglext.h, 1.1, 1.2 glitz_eglint.h, 1.1, 1.2

Jon Smirl commit at pdx.freedesktop.org
Thu May 19 10:46:12 PDT 2005


Committed by: jonsmirl

Update of /cvs/cairo/glitz/src/egl
In directory gabe:/tmp/cvs-serv6367/src/egl

Modified Files:
	glitz-egl.h glitz_egl_surface.c glitz_eglext.h glitz_eglint.h 
Log Message:
Naming cleanup to make glitz-egl match egl
Remove a bunch of unused typedefs


Index: glitz-egl.h
===================================================================
RCS file: /cvs/cairo/glitz/src/egl/glitz-egl.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- glitz-egl.h	19 May 2005 13:30:49 -0000	1.1
+++ glitz-egl.h	19 May 2005 17:46:10 -0000	1.2
@@ -53,22 +53,22 @@
                                 const glitz_drawable_format_t *templ,
                                 int                           count);
 
-/* glitz_egl_drawable.c */
+/* glitz_egl_surface.c */
 
 glitz_drawable_t *
-glitz_egl_create_window_surface (EGLDisplay              display,
-                                      EGLScreenMESA           screen,
-                                      glitz_drawable_format_t *format,
-                                      NativeWindowType        window,
-                                      unsigned int            width,
-                                      unsigned int            height);
+glitz_egl_create_surface (EGLDisplay              egl_display,
+                          EGLScreenMESA           egl_screen,
+                          glitz_drawable_format_t *format,
+                          EGLSurface              egl_surface,
+                          unsigned int            width,
+                          unsigned int            height);
 
 glitz_drawable_t *
-glitz_egl_create_pbuffer_surface (EGLDisplay              display,
-                                   EGLScreenMESA           screen,
-                                   glitz_drawable_format_t *format,
-                                   unsigned int            width,
-                                   unsigned int            height);
+glitz_egl_create_pbuffer_surface (EGLDisplay               egl_display,
+                                  EGLScreenMESA           egl_screen,
+                                  glitz_drawable_format_t *format,
+                                  unsigned int            width,
+                                  unsigned int            height);
 
 
 #if defined(__cplusplus) || defined(c_plusplus)

Index: glitz_egl_surface.c
===================================================================
RCS file: /cvs/cairo/glitz/src/egl/glitz_egl_surface.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- glitz_egl_surface.c	19 May 2005 13:30:49 -0000	1.1
+++ glitz_egl_surface.c	19 May 2005 17:46:10 -0000	1.2
@@ -117,18 +117,18 @@
 }
 
 glitz_drawable_t *
-glitz_egl_create_window_surface (EGLDisplay              display,
-                                      EGLScreenMESA           screen,
-                                      glitz_drawable_format_t *format,
-                                      NativeWindowType        window,
-                                      unsigned int            width,
-                                      unsigned int            height)
+glitz_egl_create_surface (EGLDisplay              egl_display,
+                          EGLScreenMESA           egl_screen,
+                          glitz_drawable_format_t *format,
+                          EGLSurface              egl_surface,
+                          unsigned int            width,
+                          unsigned int            height)
 {
   glitz_egl_surface_t *surface;
   glitz_egl_screen_info_t *screen_info;
   glitz_egl_context_t *context;
 
-  screen_info = glitz_egl_screen_info_get (display, screen);
+  screen_info = glitz_egl_screen_info_get (egl_display, egl_screen);
   if (!screen_info)
     return NULL;
   
@@ -137,14 +137,14 @@
     return NULL;
   
   surface = _glitz_egl_create_surface (screen_info, context, format,
-                                         window,
+                                         egl_surface,
                                          width, height);
   if (!surface)
     return NULL;
 
   return &surface->base;
 }
-slim_hidden_def(glitz_egl_create_window_surface);
+slim_hidden_def(glitz_egl_create_surface);
 
 glitz_drawable_t *
 glitz_egl_create_pbuffer_surface (EGLDisplay              display,

Index: glitz_eglext.h
===================================================================
RCS file: /cvs/cairo/glitz/src/egl/glitz_eglext.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- glitz_eglext.h	19 May 2005 13:30:49 -0000	1.1
+++ glitz_eglext.h	19 May 2005 17:46:10 -0000	1.2
@@ -29,28 +29,5 @@
 #define GLITZ_EGLEXT_H_INCLUDED
 
 
-typedef glitz_function_pointer_t (* glitz_egl_get_proc_address_t)
-     (const glitz_gl_ubyte_t *);
-typedef EGLConfig *(* glitz_egl_get_configs_t)
-     (EGLDisplay egl_display, EGLScreenMESA egl_screen, int *n_elements);
-typedef int (* glitz_egl_get_config_attrib_t)
-     (EGLDisplay egl_display, EGLConfig egl_config, int attribute, int *value);
-typedef EGLSurface (* glitz_egl_create_pbuffer_t)
-     (EGLDisplay egl_display, EGLConfig egl_config, const int *attrib_list);
-typedef void (* glitz_egl_destroy_pbuffer_t)
-     (EGLDisplay egl_display, EGLSurface egl_pbuffer);
-typedef void (* glitz_egl_query_drawable_t)
-     (EGLDisplay egl_display, EGLSurface egl_surface,
-      int attribute, unsigned int *value);
-typedef EGLBoolean (* glitz_egl_make_context_current_t)
-     (EGLDisplay egl_display, EGLSurface egl_draw, EGLSurface egl_read, EGLContext egl_ctx);
-typedef EGLContext (* glitz_egl_create_new_context_t)
-     (EGLDisplay egl_display, EGLConfig egl_config, int render_type,
-      EGLContext egl_share_list, EGLBoolean direct);
-
-typedef EGLBoolean *(* glitz_egl_bind_tex_image_t)
-     (EGLDisplay egl_display, EGLSurface egl_pbuffer, int buffer);
-typedef EGLBoolean (* glitz_egl_release_tex_image_t)
-     (EGLDisplay egl_display, EGLSurface egl_pbuffer, int buffer);
 
 #endif /* GLITZ_EGLEXT_H_INCLUDED */

Index: glitz_eglint.h
===================================================================
RCS file: /cvs/cairo/glitz/src/egl/glitz_eglint.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- glitz_eglint.h	19 May 2005 13:30:49 -0000	1.1
+++ glitz_eglint.h	19 May 2005 17:46:10 -0000	1.2
@@ -165,7 +165,7 @@
 slim_hidden_proto(glitz_egl_init)
 slim_hidden_proto(glitz_egl_fini)
 slim_hidden_proto(glitz_egl_find_config)
-slim_hidden_proto(glitz_egl_create_window_surface)
+slim_hidden_proto(glitz_egl_create_surface)
 slim_hidden_proto(glitz_egl_create_pbuffer_surface)
 
 #endif /* GLITZ_EGLINT_H_INCLUDED */




More information about the cairo-commit mailing list