external/gbm_gralloc
Revisión | 3090c6eb4143aba5637b74bdf3f3a4affb86ad6c (tree) |
---|---|
Tiempo | 2020-06-23 18:29:05 |
Autor | Shawn Guo <shawn.guo@lina...> |
Commiter | Amit Pundir |
gralloc_gbm: fix gralloc_gbm_bo_lock() declaration
The variable names in gralloc_gbm_bo_lock() function declaration don't
match the definition in gralloc_gbm.cpp. Let's fix them to stop the
confusion.
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
@@ -43,7 +43,7 @@ struct gbm_bo *gralloc_gbm_bo_from_handle(buffer_handle_t handle); | ||
43 | 43 | buffer_handle_t gralloc_gbm_bo_get_handle(struct gbm_bo *bo); |
44 | 44 | int gralloc_gbm_get_gem_handle(buffer_handle_t handle); |
45 | 45 | |
46 | -int gralloc_gbm_bo_lock(buffer_handle_t handle, int x, int y, int w, int h, int enable_write, void **addr); | |
46 | +int gralloc_gbm_bo_lock(buffer_handle_t handle, int usage, int x, int y, int w, int h, void **addr); | |
47 | 47 | int gralloc_gbm_bo_unlock(buffer_handle_t handle); |
48 | 48 | |
49 | 49 | struct gbm_device *gbm_dev_create(void); |