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 13:00:56 -0500
committerDerek Foreman <derekf@osg.samsung.com>2017-06-23 08:15:40 -0500
commita97b1ac006ea1810832943523f5c135da2c50637 (patch)
tree5535e5a8a222ad0337b6a744d605e28cc3cab6ab /src/lib/ecore_drm2/ecore_drm2_fb.c
parenta3eed7865a4508c3fe52c3b022216008801b5506 (diff)
ecore_drm2: Update buffer release mechanism to send new status information
Begin moving internals over to the new per fb status updates.
Diffstat (limited to '')
-rw-r--r--src/lib/ecore_drm2/ecore_drm2_fb.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/ecore_drm2/ecore_drm2_fb.c b/src/lib/ecore_drm2/ecore_drm2_fb.c
index b97634d1a4..bd81889308 100644
--- a/src/lib/ecore_drm2/ecore_drm2_fb.c
+++ b/src/lib/ecore_drm2/ecore_drm2_fb.c
@@ -245,8 +245,14 @@ ecore_drm2_fb_dirty(Ecore_Drm2_Fb *fb, Eina_Rectangle *rects, unsigned int count
245void 245void
246_ecore_drm2_fb_buffer_release(Ecore_Drm2_Output *output, Ecore_Drm2_Output_State *s) 246_ecore_drm2_fb_buffer_release(Ecore_Drm2_Output *output, Ecore_Drm2_Output_State *s)
247{ 247{
248 Ecore_Drm2_Fb *fb = s->fb;
249
248 if (output->release_cb) output->release_cb(output->release_data, s->fb); 250 if (output->release_cb) output->release_cb(output->release_data, s->fb);
249 _ecore_drm2_fb_deref(s->fb); 251
252 if (fb->status_handler)
253 fb->status_handler(fb, ECORE_DRM2_FB_STATUS_RELEASE, fb->status_data);
254
255 _ecore_drm2_fb_deref(fb);
250 s->fb = NULL; 256 s->fb = NULL;
251 if (_ecore_drm2_use_atomic) 257 if (_ecore_drm2_use_atomic)
252 { 258 {