From 44f066b9ffb7749e872c9cc44ab4d6e2973c2372 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristian=20H=C3=B8gsberg?= Date: Fri, 13 Jul 2012 11:19:24 -0400 Subject: gbm: Add new gbm_bo_import entry point This generalizes and replaces gbm_bo_create_for_egl_image. gbm_bo_import will create a gbm_bo from either an EGLImage or a struct wl_buffer. --- src/gbm/main/gbmint.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/gbm/main/gbmint.h') diff --git a/src/gbm/main/gbmint.h b/src/gbm/main/gbmint.h index 8eb8671..ab23f0a 100644 --- a/src/gbm/main/gbmint.h +++ b/src/gbm/main/gbmint.h @@ -66,10 +66,8 @@ struct gbm_device { uint32_t width, uint32_t height, uint32_t format, uint32_t usage); - struct gbm_bo *(*bo_create_from_egl_image)(struct gbm_device *gbm, - void *egl_dpy, void *egl_img, - uint32_t width, uint32_t height, - uint32_t usage); + struct gbm_bo *(*bo_import)(struct gbm_device *gbm, uint32_t type, + void *buffer, uint32_t usage); int (*bo_write)(struct gbm_bo *bo, const void *buf, size_t data); void (*bo_destroy)(struct gbm_bo *bo); -- cgit v1.1