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/gbmint.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/gbmint.h')
-rw-r--r-- | src/gbm/main/gbmint.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gbm/main/gbmint.h b/src/gbm/main/gbmint.h index 8eb8671aeb2..ab23f0af073 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); |