OSDN Git Service

deprecate GBM_BO_USE_WRITE
authorZach Reizner <zachr@google.com>
Tue, 8 Mar 2016 18:22:40 +0000 (10:22 -0800)
committerchrome-bot <chrome-bot@chromium.org>
Fri, 22 Apr 2016 17:14:03 +0000 (10:14 -0700)
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>
gbm.h

diff --git a/gbm.h b/gbm.h
index a40d4cd..9992db3 100644 (file)
--- a/gbm.h
+++ b/gbm.h
@@ -205,8 +205,7 @@ enum gbm_bo_flags {
     */
    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 @@ gbm_bo_get_plane_size(struct gbm_bo *bo, size_t plane);
 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 *));