From a872ecf380bfb33a1e17878d7d7ac16d1730dc09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tapani=20P=C3=A4lli?= Date: Fri, 3 May 2013 10:08:54 +0300 Subject: gralloc: provide methods for hwc to change handle of a plane MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Patch changes reserve_plane to get id number as additional parameter. This can be used by hwc to make changes to a particular plane. New api hwc_set_plane_handle is introduced so that hwc can change the buffer handle of a plane, this is required because after plane has been reserved for a particular ui layer, this handle can change as the layer is typically multibuffered. Change-Id: I32d711ff3565ae9e8f5b8a6691c22b03a50cefe7 Signed-off-by: Tapani Pälli Reviewed-by: Topi Pohjolainen --- gralloc_drm.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gralloc_drm.h') diff --git a/gralloc_drm.h b/gralloc_drm.h index 4c57296..904fd96 100644 --- a/gralloc_drm.h +++ b/gralloc_drm.h @@ -138,10 +138,13 @@ int gralloc_drm_bo_add_fb(struct gralloc_drm_bo_t *bo); void gralloc_drm_bo_rm_fb(struct gralloc_drm_bo_t *bo); int gralloc_drm_bo_post(struct gralloc_drm_bo_t *bo); -int gralloc_drm_reserve_plane(struct gralloc_drm_t *drm, buffer_handle_t handle, +int gralloc_drm_reserve_plane(struct gralloc_drm_t *drm, + 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 gralloc_drm_disable_planes(struct gralloc_drm_t *mod); +int gralloc_drm_set_plane_handle(struct gralloc_drm_t *drm, + uint32_t id, buffer_handle_t handle); #ifdef __cplusplus } -- cgit v1.1