summaryrefslogtreecommitdiffstats
path: root/gralloc_drm_priv.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_priv.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_priv.h')
-rw-r--r--gralloc_drm_priv.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gralloc_drm_priv.h b/gralloc_drm_priv.h
index 1da3e4a..33f688d 100644
--- a/gralloc_drm_priv.h
+++ b/gralloc_drm_priv.h
@@ -110,6 +110,8 @@ struct gralloc_drm_bo_t {
int lock_count;
int locked_for;
+
+ unsigned int refcount;
};
struct gralloc_drm_drv_t *gralloc_drm_drv_create_for_pipe(int fd, const char *name);