From f457f7a31c03f218cdcb31108fefb343d6be14a8 Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Tue, 27 Oct 2009 16:15:54 +0800 Subject: egl_android: Decide image config by matching the native pixmap. --- src/egl/drivers/android/droid.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/egl/drivers/android/droid.h') diff --git a/src/egl/drivers/android/droid.h b/src/egl/drivers/android/droid.h index 06ca7ab9e7..7a8c725157 100644 --- a/src/egl/drivers/android/droid.h +++ b/src/egl/drivers/android/droid.h @@ -64,11 +64,13 @@ struct droid_backend { _EGLSurface *surf, NativeWindowType win); struct droid_surface *(*create_image_surface)(struct droid_backend *backend, - NativePixmapType pix, - int *depth); + NativePixmapType pix); void (*destroy_surface)(struct droid_backend *backend, struct droid_surface *surf); void (*swap_native_buffers)(struct droid_backend *backend, struct droid_surface *surf); + + int (*match_pixmap)(struct droid_backend *backend, _EGLConfig *conf, + NativePixmapType pix); }; struct droid_screen { @@ -80,9 +82,6 @@ struct droid_screen { const __DRIconfig **dri_configs; int num_dri_configs; - -#define DROID_MAX_IMAGE_DEPTH 32 - const __DRIconfig *image_configs[DROID_MAX_IMAGE_DEPTH + 1]; }; struct droid_backend * -- cgit v1.2.3