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

Side by Side Diff: third_party/mesa/MesaLib/src/egl/main/eglapi.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 | « no previous file | third_party/mesa/MesaLib/src/egl/main/egldisplay.h » ('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 * Public EGL API entrypoints 2 * Public EGL API entrypoints
3 * 3 *
4 * Generally, we use the EGLDisplay parameter as a key to lookup the 4 * Generally, we use the EGLDisplay parameter as a key to lookup the
5 * appropriate device driver handle, then jump though the driver's 5 * appropriate device driver handle, then jump though the driver's
6 * dispatch table to handle the function. 6 * dispatch table to handle the function.
7 * 7 *
8 * That allows us the option of supporting multiple, simultaneous, 8 * That allows us the option of supporting multiple, simultaneous,
9 * heterogeneous hardware devices in the future. 9 * heterogeneous hardware devices in the future.
10 * 10 *
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 266
267 267
268 /** 268 /**
269 * This is typically the first EGL function that an application calls. 269 * This is typically the first EGL function that an application calls.
270 * It associates a private _EGLDisplay object to the native display. 270 * It associates a private _EGLDisplay object to the native display.
271 */ 271 */
272 EGLDisplay EGLAPIENTRY 272 EGLDisplay EGLAPIENTRY
273 eglGetDisplay(EGLNativeDisplayType nativeDisplay) 273 eglGetDisplay(EGLNativeDisplayType nativeDisplay)
274 { 274 {
275 _EGLPlatformType plat = _eglGetNativePlatform(); 275 _EGLPlatformType plat = _eglGetNativePlatform();
276 _EGLDisplay *dpy = _eglFindDisplay(plat, (void *) nativeDisplay); 276 _EGLDisplay *dpy = _eglFindDisplay(plat, nativeDisplay);
277 return _eglGetDisplayHandle(dpy); 277 return _eglGetDisplayHandle(dpy);
278 } 278 }
279 279
280 280
281 /** 281 /**
282 * This is typically the second EGL function that an application calls. 282 * This is typically the second EGL function that an application calls.
283 * Here we load/initialize the actual hardware driver. 283 * Here we load/initialize the actual hardware driver.
284 */ 284 */
285 EGLBoolean EGLAPIENTRY 285 EGLBoolean EGLAPIENTRY
286 eglInitialize(EGLDisplay dpy, EGLint *major, EGLint *minor) 286 eglInitialize(EGLDisplay dpy, EGLint *major, EGLint *minor)
(...skipping 1165 matching lines...) Expand 10 before | Expand all | Expand 10 after
1452 _EGL_CHECK_DISPLAY(disp, EGL_FALSE, drv); 1452 _EGL_CHECK_DISPLAY(disp, EGL_FALSE, drv);
1453 if (!img) 1453 if (!img)
1454 RETURN_EGL_ERROR(disp, EGL_BAD_PARAMETER, EGL_FALSE); 1454 RETURN_EGL_ERROR(disp, EGL_BAD_PARAMETER, EGL_FALSE);
1455 1455
1456 ret = drv->API.ExportDRMImageMESA(drv, disp, img, name, handle, stride); 1456 ret = drv->API.ExportDRMImageMESA(drv, disp, img, name, handle, stride);
1457 1457
1458 RETURN_EGL_EVAL(disp, ret); 1458 RETURN_EGL_EVAL(disp, ret);
1459 } 1459 }
1460 1460
1461 #endif 1461 #endif
OLDNEW
« no previous file with comments | « no previous file | third_party/mesa/MesaLib/src/egl/main/egldisplay.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698