diff options
author | Chia-I Wu <olvaffe@gmail.com> | 2009-10-27 16:15:54 +0800 |
---|---|---|
committer | Chia-I Wu <olvaffe@gmail.com> | 2009-10-27 17:45:13 +0800 |
commit | f457f7a31c03f218cdcb31108fefb343d6be14a8 (patch) | |
tree | a44a14177d08286f192e3ec4f9d1102e405bf44b /src/egl/drivers/android/droid.h | |
parent | 11ff6a0e6f18d434ae0f9502ae0711977db6c22e (diff) |
egl_android: Decide image config by matching the native pixmap.
Diffstat (limited to 'src/egl/drivers/android/droid.h')
-rw-r--r-- | src/egl/drivers/android/droid.h | 9 |
1 files changed, 4 insertions, 5 deletions
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 * |