| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |