summaryrefslogtreecommitdiff
path: root/src/lib/ecore_drm2/ecore_drm2_fb.c
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2017-06-15 12:55:03 -0500
committerDerek Foreman <derekf@osg.samsung.com>2017-06-23 08:15:40 -0500
commita3eed7865a4508c3fe52c3b022216008801b5506 (patch)
tree2ade78bde988399fd79800b6ea49f5eaec7d81a9 /src/lib/ecore_drm2/ecore_drm2_fb.c
parentbd0774206f8b9780f6825dbf52c2381fe8ef1e6f (diff)
ecore_drm2: Add ecore_drm2_fb_status_handler_set
The old per output release handler is no longer complicated enough. In the near future we'll need to be able to tell an engine that its fb has been placed on scanout via hardware plane, or removed from a hardware plane. It's simpler to provide that information as well as release information through a single callback.
Diffstat (limited to '')
-rw-r--r--src/lib/ecore_drm2/ecore_drm2_fb.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/ecore_drm2/ecore_drm2_fb.c b/src/lib/ecore_drm2/ecore_drm2_fb.c
index 56b397ece8..b97634d1a4 100644
--- a/src/lib/ecore_drm2/ecore_drm2_fb.c
+++ b/src/lib/ecore_drm2/ecore_drm2_fb.c
@@ -670,3 +670,10 @@ fail:
670 free(fb); 670 free(fb);
671 return NULL; 671 return NULL;
672} 672}
673
674EAPI void
675ecore_drm2_fb_status_handler_set(Ecore_Drm2_Fb *fb, Ecore_Drm2_Fb_Status_Handler handler, void *data)
676{
677 fb->status_handler = handler;
678 fb->status_data = data;
679}