diff options
author | Kristian Høgsberg <[email protected]> | 2012-07-13 11:19:24 -0400 |
---|---|---|
committer | Kristian Høgsberg <[email protected]> | 2012-07-16 16:29:15 -0400 |
commit | 44f066b9ffb7749e872c9cc44ab4d6e2973c2372 (patch) | |
tree | 9c2a9bd9a77bfc6f67c37117ba268cba091032aa /src/gbm/main/gbm.h | |
parent | 43ccded1e17147c0b705152add11875b560b1c43 (diff) |
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.
Diffstat (limited to 'src/gbm/main/gbm.h')
-rw-r--r-- | src/gbm/main/gbm.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/gbm/main/gbm.h b/src/gbm/main/gbm.h index af5dc5aee8c..52afdf7fd13 100644 --- a/src/gbm/main/gbm.h +++ b/src/gbm/main/gbm.h @@ -230,11 +230,12 @@ gbm_bo_create(struct gbm_device *gbm, uint32_t width, uint32_t height, uint32_t format, uint32_t flags); +#define GBM_BO_IMPORT_WL_BUFFER 0x5501 +#define GBM_BO_IMPORT_EGL_IMAGE 0x5502 + struct gbm_bo * -gbm_bo_create_from_egl_image(struct gbm_device *gbm, - void *egl_dpy, void *egl_img, - uint32_t width, uint32_t height, - uint32_t usage); +gbm_bo_import(struct gbm_device *gbm, uint32_t type, + void *buffer, uint32_t usage); uint32_t gbm_bo_get_width(struct gbm_bo *bo); |