Lines Matching defs:dp

307     egl_display_ptr dp = get_display(dpy);
308 if (!dp) return setError(EGL_BAD_DISPLAY, (EGLBoolean)EGL_FALSE);
310 EGLBoolean res = dp->initialize(major, minor);
323 egl_display_ptr dp = get_display(dpy);
324 if (!dp) return setError(EGL_BAD_DISPLAY, (EGLBoolean)EGL_FALSE);
326 EGLBoolean res = dp->terminate();
341 const egl_display_ptr dp = validate_display(dpy);
342 if (!dp) return EGL_FALSE;
354 dp->disp.dpy, configs, config_size, num_config);
366 const egl_display_ptr dp = validate_display(dpy);
367 if (!dp) return EGL_FALSE;
422 dp->disp.dpy, aaAttribs, configs, config_size, &numConfigAA);
434 dp->disp.dpy, attrib_list, configs, config_size, num_config);
445 const egl_display_ptr dp = validate_display_connection(dpy, cnx);
446 if (!dp) return EGL_FALSE;
449 dp->disp.dpy, config, attribute, value);
485 static std::vector<EGLint> getDriverColorSpaces(egl_display_ptr dp,
488 if (!dp->hasColorSpaceSupport) return colorSpaces;
502 if (findExtension(dp->disp.queryString.extensions,
512 if (findExtension(dp->disp.queryString.extensions,
516 if (findExtension(dp->disp.queryString.extensions,
524 if (findExtension(dp->disp.queryString.extensions,
528 if (findExtension(dp->disp.queryString.extensions,
535 if (findExtension(dp->disp.queryString.extensions,
545 static EGLBoolean processAttributes(egl_display_ptr dp, NativeWindowType window,
553 if (!dp->hasColorSpaceSupport) return false;
558 std::vector<EGLint> driverColorSpaces = getDriverColorSpaces(dp, format);
703 egl_display_ptr dp = validate_display_connection(dpy, cnx);
704 if (dp) {
723 EGLDisplay iDpy = dp->disp.dpy;
730 if (!processAttributes(dp, window, format, attrib_list, &colorSpace,
767 new egl_surface_t(dp.get(), config, window, surface,
786 egl_display_ptr dp = validate_display_connection(dpy, cnx);
787 if (dp) {
788 EGLDisplay iDpy = dp->disp.dpy;
795 if (!processAttributes(dp, nullptr, format, attrib_list, &colorSpace,
803 dp->disp.dpy, config, pixmap, attrib_list);
806 new egl_surface_t(dp.get(), config, NULL, surface,
820 egl_display_ptr dp = validate_display_connection(dpy, cnx);
821 if (dp) {
822 EGLDisplay iDpy = dp->disp.dpy;
829 if (!processAttributes(dp, nullptr, format, attrib_list, &colorSpace,
837 dp->disp.dpy, config, attrib_list);
840 new egl_surface_t(dp.get(), config, NULL, surface,
852 const egl_display_ptr dp = validate_display(dpy);
853 if (!dp) return EGL_FALSE;
855 SurfaceRef _s(dp.get(), surface);
860 EGLBoolean result = s->cnx->egl.eglDestroySurface(dp->disp.dpy, s->surface);
872 const egl_display_ptr dp = validate_display(dpy);
873 if (!dp) return EGL_FALSE;
875 SurfaceRef _s(dp.get(), surface);
887 return s->cnx->egl.eglQuerySurface(dp->disp.dpy, s->surface, attribute, value);
894 const egl_display_ptr dp = validate_display(dpy);
895 if (!dp) {
899 SurfaceRef _s(dp.get(), surface);
915 const egl_display_ptr dp = validate_display_connection(dpy, cnx);
916 if (dp) {
918 if (!ContextRef(dp.get(), share_list).get()) {
925 dp->disp.dpy, config, share_list, attrib_list);
954 const egl_display_ptr dp = validate_display(dpy);
955 if (!dp)
958 ContextRef _c(dp.get(), ctx);
963 EGLBoolean result = c->cnx->egl.eglDestroyContext(dp->disp.dpy, c->context);
975 egl_display_ptr dp = validate_display(dpy);
976 if (!dp) return setError(EGL_BAD_DISPLAY, (EGLBoolean)EGL_FALSE);
983 if (!dp->isReady()) return setError(EGL_NOT_INITIALIZED, (EGLBoolean)EGL_FALSE);
987 ContextRef _c(dp.get(), ctx);
988 SurfaceRef _d(dp.get(), draw);
989 SurfaceRef _r(dp.get(), read);
1041 EGLBoolean result = dp->makeCurrent(c, cur_c,
1062 ContextRef _c2(dp.get(), cur_c);
1063 SurfaceRef _d2(dp.get(), cur_c->draw);
1064 SurfaceRef _r2(dp.get(), cur_c->read);
1078 restore_result = dp->makeCurrent(c, cur_c,
1102 const egl_display_ptr dp = validate_display(dpy);
1103 if (!dp) return EGL_FALSE;
1105 ContextRef _c(dp.get(), ctx);
1110 dp->disp.dpy, c->context, attribute, value);
1372 const egl_display_ptr dp = validate_display(dpy);
1373 if (!dp) return EGL_FALSE;
1375 SurfaceRef _s(dp.get(), draw);
1381 if (CC_UNLIKELY(dp->traceGpuCompletion)) {
1388 if (CC_UNLIKELY(dp->finishOnSwap)) {
1404 return s->cnx->egl.eglSwapBuffers(dp->disp.dpy, s->surface);
1424 return s->cnx->egl.eglSwapBuffersWithDamageKHR(dp->disp.dpy, s->surface,
1427 return s->cnx->egl.eglSwapBuffers(dp->disp.dpy, s->surface);
1441 const egl_display_ptr dp = validate_display(dpy);
1442 if (!dp) return EGL_FALSE;
1444 SurfaceRef _s(dp.get(), surface);
1449 return s->cnx->egl.eglCopyBuffers(dp->disp.dpy, s->surface, target);
1466 const egl_display_ptr dp = validate_display(dpy);
1467 if (!dp) return (const char *) NULL;
1471 return dp->getVendorString();
1473 return dp->getVersionString();
1475 return dp->getExtensionString();
1477 return dp->getClientApiString();
1488 const egl_display_ptr dp = validate_display(dpy);
1489 if (!dp) return (const char *) NULL;
1493 return dp->disp.queryString.vendor;
1495 return dp->disp.queryString.version;
1497 return dp->disp.queryString.extensions;
1499 return dp->disp.queryString.clientApi;
1515 const egl_display_ptr dp = validate_display(dpy);
1516 if (!dp) return EGL_FALSE;
1518 SurfaceRef _s(dp.get(), surface);
1546 dp->disp.dpy, s->surface, attribute, value);
1556 const egl_display_ptr dp = validate_display(dpy);
1557 if (!dp) return EGL_FALSE;
1559 SurfaceRef _s(dp.get(), surface);
1566 dp->disp.dpy, s->surface, buffer);
1576 const egl_display_ptr dp = validate_display(dpy);
1577 if (!dp) return EGL_FALSE;
1579 SurfaceRef _s(dp.get(), surface);
1586 dp->disp.dpy, s->surface, buffer);
1595 const egl_display_ptr dp = validate_display(dpy);
1596 if (!dp) return EGL_FALSE;
1601 res = cnx->egl.eglSwapInterval(dp->disp.dpy, interval);
1686 const egl_display_ptr dp = validate_display_connection(dpy, cnx);
1687 if (!dp) return EGL_FALSE;
1690 dp->disp.dpy, buftype, buffer, config, attrib_list);
1704 const egl_display_ptr dp = validate_display(dpy);
1705 if (!dp) return EGL_FALSE;
1707 SurfaceRef _s(dp.get(), surface);
1714 dp->disp.dpy, s->surface, attrib_list);
1723 const egl_display_ptr dp = validate_display(dpy);
1724 if (!dp) return EGL_FALSE;
1726 SurfaceRef _s(dp.get(), surface);
1732 return s->cnx->egl.eglUnlockSurfaceKHR(dp->disp.dpy, s->surface);
1742 const egl_display_ptr dp = validate_display(dpy);
1743 if (!dp) return EGL_NO_IMAGE_KHR;
1745 ContextRef _c(dp.get(), ctx);
1755 dp->haveExtension("EGL_EXT_image_gl_colorspace")) {
1770 dp->disp.dpy,
1781 const egl_display_ptr dp = validate_display(dpy);
1782 if (!dp) return EGL_FALSE;
1787 result = cnx->egl.eglDestroyImageKHR(dp->disp.dpy, img);
1801 const egl_display_ptr dp = validate_display(dpy);
1802 if (!dp) return EGL_NO_SYNC_KHR;
1807 result = cnx->egl.eglCreateSyncKHR(dp->disp.dpy, type, attrib_list);
1816 const egl_display_ptr dp = validate_display(dpy);
1817 if (!dp) return EGL_FALSE;
1822 result = cnx->egl.eglDestroySyncKHR(dp->disp.dpy, sync);
1830 const egl_display_ptr dp = validate_display(dpy);
1831 if (!dp) return EGL_FALSE;
1837 dp->disp.dpy, sync, mode);
1847 const egl_display_ptr dp = validate_display(dpy);
1848 if (!dp) return EGL_FALSE;
1854 dp->disp.dpy, sync, flags, timeout);
1864 const egl_display_ptr dp = validate_display(dpy);
1865 if (!dp) return EGL_FALSE;
1871 dp->disp.dpy, sync, attribute, value);
1880 const egl_display_ptr dp = validate_display(dpy);
1881 if (!dp) return EGL_NO_STREAM_KHR;
1887 dp->disp.dpy, attrib_list);
1896 const egl_display_ptr dp = validate_display(dpy);
1897 if (!dp) return EGL_FALSE;
1903 dp->disp.dpy, stream);
1913 const egl_display_ptr dp = validate_display(dpy);
1914 if (!dp) return EGL_FALSE;
1920 dp->disp.dpy, stream, attribute, value);
1930 const egl_display_ptr dp = validate_display(dpy);
1931 if (!dp) return EGL_FALSE;
1937 dp->disp.dpy, stream, attribute, value);
1947 const egl_display_ptr dp = validate_display(dpy);
1948 if (!dp) return EGL_FALSE;
1954 dp->disp.dpy, stream, attribute, value);
1964 const egl_display_ptr dp = validate_display(dpy);
1965 if (!dp) return EGL_FALSE;
1971 dp->disp.dpy, stream, attribute, value);
1981 egl_display_ptr dp = validate_display(dpy);
1982 if (!dp) return EGL_NO_SURFACE;
1987 dp->disp.dpy, config, stream, attrib_list);
1989 egl_surface_t* s = new egl_surface_t(dp.get(), config, NULL, surface,
2002 const egl_display_ptr dp = validate_display(dpy);
2003 if (!dp) return EGL_FALSE;
2009 dp->disp.dpy, stream);
2019 const egl_display_ptr dp = validate_display(dpy);
2020 if (!dp) return EGL_FALSE;
2026 dp->disp.dpy, stream);
2036 const egl_display_ptr dp = validate_display(dpy);
2037 if (!dp) return EGL_FALSE;
2043 dp->disp.dpy, stream);
2053 const egl_display_ptr dp = validate_display(dpy);
2054 if (!dp) return EGL_NO_FILE_DESCRIPTOR_KHR;
2060 dp->disp.dpy, stream);
2070 const egl_display_ptr dp = validate_display(dpy);
2071 if (!dp) return EGL_NO_STREAM_KHR;
2077 dp->disp.dpy, file_descriptor);
2088 const egl_display_ptr dp = validate_display(dpy);
2089 if (!dp) return EGL_FALSE;
2093 result = cnx->egl.eglWaitSyncKHR(dp->disp.dpy, sync, flags);
2106 const egl_display_ptr dp = validate_display(dpy);
2107 if (!dp) return EGL_NO_NATIVE_FENCE_FD_ANDROID;
2112 result = cnx->egl.eglDupNativeFenceFDANDROID(dp->disp.dpy, sync);
2122 const egl_display_ptr dp = validate_display(dpy);
2123 if (!dp) {
2127 SurfaceRef _s(dp.get(), surface);
2199 const egl_display_ptr dp = validate_display(dpy);
2200 if (!dp) {
2205 SurfaceRef _s(dp.get(), surface);
2213 return s->cnx->egl.eglSetDamageRegionKHR(dp->disp.dpy, s->surface,
2224 const egl_display_ptr dp = validate_display(dpy);
2225 if (!dp) {
2229 SurfaceRef _s(dp.get(), surface);
2259 const egl_display_ptr dp = validate_display(dpy);
2260 if (!dp) {
2264 SurfaceRef _s(dp.get(), surface);
2316 const egl_display_ptr dp = validate_display(dpy);
2317 if (!dp) {
2321 SurfaceRef _s(dp.get(), surface);
2349 const egl_display_ptr dp = validate_display(dpy);
2350 if (!dp) {
2354 SurfaceRef _s(dp.get(), surface);
2436 const egl_display_ptr dp = validate_display(dpy);
2437 if (!dp) {
2441 SurfaceRef _s(dp.get(), surface);