diff options
author | Gurchetan Singh <gurchetansingh@chromium.org> | 2016-08-12 16:38:25 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-08-17 19:15:51 -0700 |
commit | ef920536083c3e6959daa6a98db01b0f653c1c83 (patch) | |
tree | 39147f8f0e9a43dfbbb667a067e1e371309fc385 /drv.h | |
parent | 1647fbe1196e21cb314a4c9b950846393e1dbc6a (diff) |
minigbm: Add mmap() in backends
Gralloc requires the ability to mmap a buffer into userspace. This
change adds the necessary entry points to our internal "drv"
interface.
BUG=chromium:616275
TEST=minigbm still builds. Also ran:
./gralloctest mapping
with CL:362062 applied on minnie and cyan (decided to split that CL
into smaller patches).
CQ-DEPEND=CL:366041
Change-Id: I7396b0c79702f24eb779984805bc679c237bd932
Reviewed-on: https://chromium-review.googlesource.com/370798
Commit-Ready: Gurchetan Singh <gurchetansingh@chromium.org>
Tested-by: Gurchetan Singh <gurchetansingh@chromium.org>
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
Diffstat (limited to 'drv.h')
-rw-r--r-- | drv.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -145,6 +145,12 @@ drv_bo_create(struct driver *drv, uint32_t width, uint32_t height, void drv_bo_destroy(struct bo *bo); +void * +drv_bo_map(struct bo *bo); + +int +drv_bo_unmap(struct bo *bo); + struct bo * drv_bo_import(struct driver *drv, struct drv_import_fd_data *data); |