Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(452)

Side by Side Diff: third_party/mesa/MesaLib/src/egl/main/egldisplay.c

Issue 5921002: Fixed warning on linux x64.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « third_party/mesa/MesaLib/src/egl/main/egldisplay.h ('k') | third_party/mesa/README.chromium » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « third_party/mesa/MesaLib/src/egl/main/egldisplay.h ('k') | third_party/mesa/README.chromium » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698