summaryrefslogtreecommitdiff
path: root/src/lib/ecore_drm/Ecore_Drm.h
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2015-04-07 14:30:43 -0400
committerStefan Schmidt <s.schmidt@samsung.com>2015-04-10 11:09:50 +0200
commit3832cd59b8102b063fe65c7f0fe81626da285455 (patch)
tree3b297abbdb1b8a35e4c8951b9f1941d7a2c4d73a /src/lib/ecore_drm/Ecore_Drm.h
parente3440c4683143011f52e092eb722f4a8cabd454e (diff)
ecore-drm: Create drmEventContext Once during device open
Summary: This changes allows us to reuse the same drmEventContext once so that when we get drm events, we are not constantly recreating the drmEventContext. @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'src/lib/ecore_drm/Ecore_Drm.h')
-rw-r--r--src/lib/ecore_drm/Ecore_Drm.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/ecore_drm/Ecore_Drm.h b/src/lib/ecore_drm/Ecore_Drm.h
index 8b07cb5af2..cb6c6b2d48 100644
--- a/src/lib/ecore_drm/Ecore_Drm.h
+++ b/src/lib/ecore_drm/Ecore_Drm.h
@@ -117,6 +117,10 @@ struct _Ecore_Drm_Device
117 int current_fb; 117 int current_fb;
118 Ecore_Drm_Fb *current, *next; 118 Ecore_Drm_Fb *current, *next;
119 Ecore_Drm_Fb *dumb[2]; 119 Ecore_Drm_Fb *dumb[2];
120
121 drmEventContext drm_ctx;
122
123 Eina_Bool active : 1;
120}; 124};
121 125
122struct _Ecore_Drm_Event_Activate 126struct _Ecore_Drm_Event_Activate
@@ -205,6 +209,8 @@ EAPI int ecore_drm_device_fd_get(Ecore_Drm_Device *dev);
205EAPI void ecore_drm_device_window_set(Ecore_Drm_Device *dev, unsigned int window); 209EAPI void ecore_drm_device_window_set(Ecore_Drm_Device *dev, unsigned int window);
206EAPI const char *ecore_drm_device_name_get(Ecore_Drm_Device *dev); 210EAPI const char *ecore_drm_device_name_get(Ecore_Drm_Device *dev);
207 211
212EAPI void ecore_drm_device_fb_set(Ecore_Drm_Device *dev, Ecore_Drm_Fb *fb);
213
208/** 214/**
209 * Setup an Ecore_Drm_Device for software rendering 215 * Setup an Ecore_Drm_Device for software rendering
210 * 216 *