summaryrefslogtreecommitdiff
path: root/src/gbm/main/gbm.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gbm/main/gbm.h')
-rw-r--r--src/gbm/main/gbm.h9
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);