summaryrefslogtreecommitdiffstats
path: root/gralloc_drm_priv.h
diff options
context:
space:
mode:
Diffstat (limited to 'gralloc_drm_priv.h')
-rw-r--r--gralloc_drm_priv.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/gralloc_drm_priv.h b/gralloc_drm_priv.h
index d96702e..1a36cc1 100644
--- a/gralloc_drm_priv.h
+++ b/gralloc_drm_priv.h
@@ -56,6 +56,9 @@ struct gralloc_drm_plane_t {
/* handle to display */
buffer_handle_t handle;
+ /* identifier set by hwc */
+ uint32_t id;
+
/* position, crop and scale */
uint32_t src_x;
uint32_t src_y;
@@ -127,10 +130,13 @@ struct drm_module_t {
gralloc_module_t base;
/* HWC plane API */
- int (*hwc_reserve_plane) (struct gralloc_drm_t *mod, buffer_handle_t handle,
+ int (*hwc_reserve_plane) (struct gralloc_drm_t *mod,
+ buffer_handle_t handle, uint32_t id,
uint32_t dst_x, uint32_t dst_y, uint32_t dst_w, uint32_t dst_h,
uint32_t src_x, uint32_t src_y, uint32_t src_w, uint32_t src_h);
void (*hwc_disable_planes) (struct gralloc_drm_t *mod);
+ int (*hwc_set_plane_handle) (struct gralloc_drm_t *mod,
+ uint32_t id, buffer_handle_t handle);
pthread_mutex_t mutex;
struct gralloc_drm_t *drm;