summaryrefslogtreecommitdiff
path: root/src/lib/ecore_drm2
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2017-06-16 16:19:29 -0500
committerDerek Foreman <derekf@osg.samsung.com>2017-06-23 08:15:41 -0500
commitc67da0c86984349a130696e036bc3788eef733ab (patch)
tree15133d1e4e58c25d51a4df649c2c30093a53b10f /src/lib/ecore_drm2
parent69181cc9e84c680758ab7f7e531ebb356c40c4bf (diff)
ecore_drm2: Add Fb deleted event
Diffstat (limited to 'src/lib/ecore_drm2')
-rw-r--r--src/lib/ecore_drm2/Ecore_Drm2.h1
-rw-r--r--src/lib/ecore_drm2/ecore_drm2_fb.c3
2 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/ecore_drm2/Ecore_Drm2.h b/src/lib/ecore_drm2/Ecore_Drm2.h
index 7fc6a8f440..37a67b1e04 100644
--- a/src/lib/ecore_drm2/Ecore_Drm2.h
+++ b/src/lib/ecore_drm2/Ecore_Drm2.h
@@ -42,6 +42,7 @@ typedef enum _Ecore_Drm2_Fb_Status
42 ECORE_DRM2_FB_STATUS_SCANOUT_ON = 1, 42 ECORE_DRM2_FB_STATUS_SCANOUT_ON = 1,
43 ECORE_DRM2_FB_STATUS_SCANOUT_OFF = 2, 43 ECORE_DRM2_FB_STATUS_SCANOUT_OFF = 2,
44 ECORE_DRM2_FB_STATUS_RELEASE = 4, 44 ECORE_DRM2_FB_STATUS_RELEASE = 4,
45 ECORE_DRM2_FB_STATUS_DELETED = 8,
45} Ecore_Drm2_Fb_Status; 46} Ecore_Drm2_Fb_Status;
46 47
47/* opaque structure to represent a drm device */ 48/* opaque structure to represent a drm device */
diff --git a/src/lib/ecore_drm2/ecore_drm2_fb.c b/src/lib/ecore_drm2/ecore_drm2_fb.c
index d656ddc5bb..8977528937 100644
--- a/src/lib/ecore_drm2/ecore_drm2_fb.c
+++ b/src/lib/ecore_drm2/ecore_drm2_fb.c
@@ -180,6 +180,9 @@ _ecore_drm2_fb_deref(Ecore_Drm2_Fb *fb)
180 fb->ref--; 180 fb->ref--;
181 if (fb->ref) return; 181 if (fb->ref) return;
182 182
183 if (fb->status_handler)
184 fb->status_handler(fb, ECORE_DRM2_FB_STATUS_DELETED, fb->status_data);
185
183 _ecore_drm2_fb_destroy(fb); 186 _ecore_drm2_fb_destroy(fb);
184} 187}
185 188