OLD | NEW |
1 /** | 1 /** |
2 * Functions related to EGLDisplay. | 2 * Functions related to EGLDisplay. |
3 */ | 3 */ |
4 | 4 |
5 #include <assert.h> | 5 #include <assert.h> |
6 #include <stdlib.h> | 6 #include <stdlib.h> |
7 #include <string.h> | 7 #include <string.h> |
8 #include "eglcontext.h" | 8 #include "eglcontext.h" |
9 #include "eglsurface.h" | 9 #include "eglsurface.h" |
10 #include "egldisplay.h" | 10 #include "egldisplay.h" |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 } | 98 } |
99 _eglGlobal.DisplayList = NULL; | 99 _eglGlobal.DisplayList = NULL; |
100 } | 100 } |
101 | 101 |
102 | 102 |
103 /** | 103 /** |
104 * Find the display corresponding to the specified native display, or create a | 104 * Find the display corresponding to the specified native display, or create a |
105 * new one. | 105 * new one. |
106 */ | 106 */ |
107 _EGLDisplay * | 107 _EGLDisplay * |
108 _eglFindDisplay(_EGLPlatformType plat, void *plat_dpy) | 108 _eglFindDisplay(_EGLPlatformType plat, EGLNativeDisplayType plat_dpy) |
109 { | 109 { |
110 _EGLDisplay *dpy; | 110 _EGLDisplay *dpy; |
111 | 111 |
112 if (plat == _EGL_INVALID_PLATFORM) | 112 if (plat == _EGL_INVALID_PLATFORM) |
113 return NULL; | 113 return NULL; |
114 | 114 |
115 _eglLockMutex(_eglGlobal.Mutex); | 115 _eglLockMutex(_eglGlobal.Mutex); |
116 | 116 |
117 /* search the display list first */ | 117 /* search the display list first */ |
118 dpy = _eglGlobal.DisplayList; | 118 dpy = _eglGlobal.DisplayList; |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 prev->Next = res->Next; | 266 prev->Next = res->Next; |
267 } | 267 } |
268 else { | 268 else { |
269 res->Display->ResourceLists[type] = res->Next; | 269 res->Display->ResourceLists[type] = res->Next; |
270 } | 270 } |
271 | 271 |
272 res->Next = NULL; | 272 res->Next = NULL; |
273 /* do not reset res->Display */ | 273 /* do not reset res->Display */ |
274 res->IsLinked = EGL_FALSE; | 274 res->IsLinked = EGL_FALSE; |
275 } | 275 } |
OLD | NEW |