st/egl: Remove flush_frontbuffer and swap_buffers.
authorChia-I Wu <olv@lunarg.com>
Wed, 3 Nov 2010 08:07:23 +0000 (16:07 +0800)
committerChia-I Wu <olv@lunarg.com>
Wed, 3 Nov 2010 08:08:47 +0000 (16:08 +0800)
They are deprecated by native_surface::present and there is no user of
them.

src/gallium/state_trackers/egl/common/native.h
src/gallium/state_trackers/egl/drm/modeset.c
src/gallium/state_trackers/egl/fbdev/native_fbdev.c
src/gallium/state_trackers/egl/gdi/native_gdi.c
src/gallium/state_trackers/egl/x11/native_dri2.c
src/gallium/state_trackers/egl/x11/native_ximage.c

index 446c6b45a926b287dd737b26e5fabfcc50865026..07ff87a554dba22562c8cbf2e6b20ec13b11d8ec 100644 (file)
@@ -75,19 +75,6 @@ struct native_surface {
 
    void (*destroy)(struct native_surface *nsurf);
 
-   /**
-    * Swap the front and back buffers so that the back buffer is visible.  It
-    * is no-op if the surface is single-buffered.  The contents of the back
-    * buffer after swapping may or may not be preserved.
-    */
-   boolean (*swap_buffers)(struct native_surface *nsurf);
-
-   /**
-    * Make the front buffer visible.  In some native displays, changes to the
-    * front buffer might not be visible immediately and require manual flush.
-    */
-   boolean (*flush_frontbuffer)(struct native_surface *nsurf);
-
    /**
     * Present the given buffer to the native engine.
     */
index 453730ffa5ce93d327f9e15acb3e16f1fdd0d653..0cc06caa2a199617d9ca5d6262acb5b061fe7ec8 100644 (file)
@@ -251,8 +251,6 @@ drm_display_create_surface(struct native_display *ndpy,
    resource_surface_set_size(drmsurf->rsurf, drmsurf->width, drmsurf->height);
 
    drmsurf->base.destroy = drm_surface_destroy;
-   drmsurf->base.swap_buffers = drm_surface_swap_buffers;
-   drmsurf->base.flush_frontbuffer = drm_surface_flush_frontbuffer;
    drmsurf->base.present = drm_surface_present;
    drmsurf->base.validate = drm_surface_validate;
    drmsurf->base.wait = drm_surface_wait;
index 728dba3ff49f9ca8b864aca559dca5befbf509b2..1b5ea8bf9d51a49fe0294c3594b2ba48ce34823d 100644 (file)
@@ -207,8 +207,6 @@ fbdev_display_create_scanout_surface(struct native_display *ndpy,
    resource_surface_set_size(fbsurf->rsurf, fbsurf->width, fbsurf->height);
 
    fbsurf->base.destroy = fbdev_surface_destroy;
-   fbsurf->base.swap_buffers = fbdev_surface_swap_buffers;
-   fbsurf->base.flush_frontbuffer = fbdev_surface_flush_frontbuffer;
    fbsurf->base.present = fbdev_surface_present;
    fbsurf->base.validate = fbdev_surface_validate;
    fbsurf->base.wait = fbdev_surface_wait;
index e010c1c4e69c7cea8b00e0d8d43ce8345432f84d..3ec0dd241144c076f048aa6c8b9c93853c5741f0 100644 (file)
@@ -257,8 +257,6 @@ gdi_display_create_window_surface(struct native_display *ndpy,
    gdi_surface_update_geometry(&gsurf->base);
 
    gsurf->base.destroy = gdi_surface_destroy;
-   gsurf->base.swap_buffers = gdi_surface_swap_buffers;
-   gsurf->base.flush_frontbuffer = gdi_surface_flush_frontbuffer;
    xsurf->base.present = gdi_surface_present;
    gsurf->base.validate = gdi_surface_validate;
    gsurf->base.wait = gdi_surface_wait;
index a8df58a076d87b234a22c7cfa580e1b36d6c5ae2..331a7de432a9714cf36c046672fb359849e53f76 100644 (file)
@@ -456,8 +456,6 @@ dri2_display_create_surface(struct native_display *ndpy,
    dri2surf->color_format = dri2conf->base.color_format;
 
    dri2surf->base.destroy = dri2_surface_destroy;
-   dri2surf->base.swap_buffers = dri2_surface_swap_buffers;
-   dri2surf->base.flush_frontbuffer = dri2_surface_flush_frontbuffer;
    dri2surf->base.present = dri2_surface_present;
    dri2surf->base.validate = dri2_surface_validate;
    dri2surf->base.wait = dri2_surface_wait;
index 8e1ea4f45cd44ea5f8798117a313a472dc436414..84811fb6e147b4e5cc908ac3192a313461ffdeda 100644 (file)
@@ -283,8 +283,6 @@ ximage_display_create_surface(struct native_display *ndpy,
    xsurf->xdraw.drawable = xsurf->drawable;
 
    xsurf->base.destroy = ximage_surface_destroy;
-   xsurf->base.swap_buffers = ximage_surface_swap_buffers;
-   xsurf->base.flush_frontbuffer = ximage_surface_flush_frontbuffer;
    xsurf->base.present = ximage_surface_present;
    xsurf->base.validate = ximage_surface_validate;
    xsurf->base.wait = ximage_surface_wait;