summaryrefslogtreecommitdiffstats
path: root/gralloc_drm.h
diff options
context:
space:
mode:
authorTapani Pälli <tapani.palli@intel.com>2012-08-01 16:06:00 +0300
committerDaniel Leung <daniel.leung@intel.com>2012-10-12 08:20:45 -0700
commita86ecd9036df3862f7289378609509e50ef38cb3 (patch)
treed517ead1e2764990299357a86efb8a44d1248a6e /gralloc_drm.h
parent12971f83cab2f56198bb16f00fbbbabfe84226ca (diff)
downloadexternal_drm_gralloc-a86ecd9036df3862f7289378609509e50ef38cb3.zip
external_drm_gralloc-a86ecd9036df3862f7289378609509e50ef38cb3.tar.gz
external_drm_gralloc-a86ecd9036df3862f7289378609509e50ef38cb3.tar.bz2
gralloc: add refcount to gralloc_drm_bo_t
This is an basic enabler for gralloc to let buffers live while they are still in use by gralloc (for example during scanout), otherwise Android may choose to destroy them while they are still needed. This facility will get used with upcoming plane support and direct rendering support. Change-Id: I2f0bc595846a68e8d2feb5138b022d16f207e2b5 Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Diffstat (limited to 'gralloc_drm.h')
-rw-r--r--gralloc_drm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gralloc_drm.h b/gralloc_drm.h
index 85e3675..cf2d71c 100644
--- a/gralloc_drm.h
+++ b/gralloc_drm.h
@@ -113,7 +113,7 @@ int gralloc_drm_handle_register(buffer_handle_t handle, struct gralloc_drm_t *dr
int gralloc_drm_handle_unregister(buffer_handle_t handle);
struct gralloc_drm_bo_t *gralloc_drm_bo_create(struct gralloc_drm_t *drm, int width, int height, int format, int usage);
-void gralloc_drm_bo_destroy(struct gralloc_drm_bo_t *bo);
+void gralloc_drm_bo_decref(struct gralloc_drm_bo_t *bo);
struct gralloc_drm_bo_t *gralloc_drm_bo_from_handle(buffer_handle_t handle);
buffer_handle_t gralloc_drm_bo_get_handle(struct gralloc_drm_bo_t *bo, int *stride);