deprecate GBM_BO_USE_WRITE
There are no users of this flag, and the only thing it is defined to
affect is gbm_bo_write, which has no implementation. I suspect this is a
leftover from the original gbm that is no longer needed.
This also removes the declaration of gbm_bo_write to keep others from
thinking minigbm actually implements it.
BUG=None
TEST=minigbm still builds
Change-Id: I0b72efa14208b32e924292cef957273359c7d40b
Reviewed-on: https://chromium-review.googlesource.com/331289
Commit-Ready: Zach Reizner <zachr@chromium.org>
Tested-by: Zach Reizner <zachr@chromium.org>
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
diff --git a/gbm.h b/gbm.h
index a40d4cd..9992db3 100644
--- a/gbm.h
+++ b/gbm.h
@@ -205,8 +205,7 @@
*/
GBM_BO_USE_RENDERING = (1 << 2),
/**
- * Buffer can be used for gbm_bo_write. This is guaranteed to work
- * with GBM_BO_USE_CURSOR. but may not work for other combinations.
+ * Deprecated
*/
GBM_BO_USE_WRITE = (1 << 3),
/**
@@ -298,9 +297,6 @@
uint32_t
gbm_bo_get_plane_stride(struct gbm_bo *bo, size_t plane);
-int
-gbm_bo_write(struct gbm_bo *bo, const void *buf, size_t count);
-
void
gbm_bo_set_user_data(struct gbm_bo *bo, void *data,
void (*destroy_user_data)(struct gbm_bo *, void *));