summaryrefslogtreecommitdiffstats
path: root/gralloc_drm.h
diff options
context:
space:
mode:
authorTapani Pälli <tapani.palli@intel.com>2013-04-15 09:10:09 +0300
committerTapani Pälli <tapani.palli@intel.com>2013-04-15 13:25:55 +0300
commitb201e98a1cbdf217e52da2cf503beb3b21c2e173 (patch)
treeae9d8f127a660fa22d3ef52c3413e3c47e919ea8 /gralloc_drm.h
parent4b3db54505933738ec33f92ec7e2c5304cb18325 (diff)
downloadexternal_drm_gralloc-b201e98a1cbdf217e52da2cf503beb3b21c2e173.zip
external_drm_gralloc-b201e98a1cbdf217e52da2cf503beb3b21c2e173.tar.gz
external_drm_gralloc-b201e98a1cbdf217e52da2cf503beb3b21c2e173.tar.bz2
gralloc: plane support
patch introduces API between hwcomposer and gralloc, hwcomposer can reserve an overlay plane to be used by a particular layer in prepare hook, drmModeSetPlane for each plane gets called later when post() gets called by the eglSwapBuffers (from hwcomposer set), this can be later changed to use atomic modesetting code and drm properties to make one 'atomic flip' for graphics + planes. Change-Id: I3b7d179b285e43eb19fdc3b4c7ce093f3ba6aade Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Diffstat (limited to 'gralloc_drm.h')
-rw-r--r--gralloc_drm.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gralloc_drm.h b/gralloc_drm.h
index 891526f..8554cf7 100644
--- a/gralloc_drm.h
+++ b/gralloc_drm.h
@@ -136,6 +136,11 @@ 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,
+ 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);
+
#ifdef __cplusplus
}
#endif