Lines Matching refs:dp
273 egl_display_ptr dp = get_display(dpy); in eglInitialize() local
274 if (!dp) return setError(EGL_BAD_DISPLAY, EGL_FALSE); in eglInitialize()
276 EGLBoolean res = dp->initialize(major, minor); in eglInitialize()
289 egl_display_ptr dp = get_display(dpy); in eglTerminate() local
290 if (!dp) return setError(EGL_BAD_DISPLAY, EGL_FALSE); in eglTerminate()
292 EGLBoolean res = dp->terminate(); in eglTerminate()
307 const egl_display_ptr dp = validate_display(dpy); in eglGetConfigs() local
308 if (!dp) return EGL_FALSE; in eglGetConfigs()
320 dp->disp.dpy, configs, config_size, num_config); in eglGetConfigs()
332 const egl_display_ptr dp = validate_display(dpy); in eglChooseConfig() local
333 if (!dp) return EGL_FALSE; in eglChooseConfig()
386 dp->disp.dpy, aaAttribs, configs, config_size, &numConfigAA); in eglChooseConfig()
398 dp->disp.dpy, attrib_list, configs, config_size, num_config); in eglChooseConfig()
409 const egl_display_ptr dp = validate_display_connection(dpy, cnx); in eglGetConfigAttrib() local
410 if (!dp) return EGL_FALSE; in eglGetConfigAttrib()
413 dp->disp.dpy, config, attribute, value); in eglGetConfigAttrib()
447 egl_display_ptr dp = validate_display_connection(dpy, cnx); in eglCreateWindowSurface() local
448 if (dp) { in eglCreateWindowSurface()
449 EGLDisplay iDpy = dp->disp.dpy; in eglCreateWindowSurface()
489 if (attrib_list && dp->haveExtension("EGL_KHR_gl_colorspace")) { in eglCreateWindowSurface()
535 egl_surface_t* s = new egl_surface_t(dp.get(), config, window, in eglCreateWindowSurface()
554 egl_display_ptr dp = validate_display_connection(dpy, cnx); in eglCreatePixmapSurface() local
555 if (dp) { in eglCreatePixmapSurface()
557 dp->disp.dpy, config, pixmap, attrib_list); in eglCreatePixmapSurface()
559 egl_surface_t* s = new egl_surface_t(dp.get(), config, NULL, in eglCreatePixmapSurface()
573 egl_display_ptr dp = validate_display_connection(dpy, cnx); in eglCreatePbufferSurface() local
574 if (dp) { in eglCreatePbufferSurface()
576 dp->disp.dpy, config, attrib_list); in eglCreatePbufferSurface()
578 egl_surface_t* s = new egl_surface_t(dp.get(), config, NULL, in eglCreatePbufferSurface()
590 const egl_display_ptr dp = validate_display(dpy); in eglDestroySurface() local
591 if (!dp) return EGL_FALSE; in eglDestroySurface()
593 SurfaceRef _s(dp.get(), surface); in eglDestroySurface()
607 EGLBoolean result = s->cnx->egl.eglDestroySurface(dp->disp.dpy, s->surface); in eglDestroySurface()
619 const egl_display_ptr dp = validate_display(dpy); in eglQuerySurface() local
620 if (!dp) return EGL_FALSE; in eglQuerySurface()
622 SurfaceRef _s(dp.get(), surface); in eglQuerySurface()
628 dp->disp.dpy, s->surface, attribute, value); in eglQuerySurface()
635 const egl_display_ptr dp = validate_display(dpy); in eglBeginFrame() local
636 if (!dp) { in eglBeginFrame()
640 SurfaceRef _s(dp.get(), surface); in eglBeginFrame()
657 const egl_display_ptr dp = validate_display_connection(dpy, cnx); in eglCreateContext() local
658 if (dp) { in eglCreateContext()
660 if (!ContextRef(dp.get(), share_list).get()) { in eglCreateContext()
667 dp->disp.dpy, config, share_list, attrib_list); in eglCreateContext()
700 const egl_display_ptr dp = validate_display(dpy); in eglDestroyContext() local
701 if (!dp) in eglDestroyContext()
704 ContextRef _c(dp.get(), ctx); in eglDestroyContext()
709 EGLBoolean result = c->cnx->egl.eglDestroyContext(dp->disp.dpy, c->context); in eglDestroyContext()
721 egl_display_ptr dp = validate_display(dpy); in eglMakeCurrent() local
722 if (!dp) return setError(EGL_BAD_DISPLAY, EGL_FALSE); in eglMakeCurrent()
729 if (!dp->isReady()) return setError(EGL_NOT_INITIALIZED, EGL_FALSE); in eglMakeCurrent()
733 ContextRef _c(dp.get(), ctx); in eglMakeCurrent()
734 SurfaceRef _d(dp.get(), draw); in eglMakeCurrent()
735 SurfaceRef _r(dp.get(), read); in eglMakeCurrent()
787 EGLBoolean result = dp->makeCurrent(c, cur_c, in eglMakeCurrent()
820 const egl_display_ptr dp = validate_display(dpy); in eglQueryContext() local
821 if (!dp) return EGL_FALSE; in eglQueryContext()
823 ContextRef _c(dp.get(), ctx); in eglQueryContext()
828 dp->disp.dpy, c->context, attribute, value); in eglQueryContext()
1084 const egl_display_ptr dp = validate_display(dpy); in eglSwapBuffersWithDamageKHR() local
1085 if (!dp) return EGL_FALSE; in eglSwapBuffersWithDamageKHR()
1087 SurfaceRef _s(dp.get(), draw); in eglSwapBuffersWithDamageKHR()
1121 if (CC_UNLIKELY(dp->traceGpuCompletion)) { in eglSwapBuffersWithDamageKHR()
1128 if (CC_UNLIKELY(dp->finishOnSwap)) { in eglSwapBuffersWithDamageKHR()
1139 return s->cnx->egl.eglSwapBuffers(dp->disp.dpy, s->surface); in eglSwapBuffersWithDamageKHR()
1160 return s->cnx->egl.eglSwapBuffersWithDamageKHR(dp->disp.dpy, s->surface, in eglSwapBuffersWithDamageKHR()
1163 return s->cnx->egl.eglSwapBuffers(dp->disp.dpy, s->surface); in eglSwapBuffersWithDamageKHR()
1177 const egl_display_ptr dp = validate_display(dpy); in eglCopyBuffers() local
1178 if (!dp) return EGL_FALSE; in eglCopyBuffers()
1180 SurfaceRef _s(dp.get(), surface); in eglCopyBuffers()
1185 return s->cnx->egl.eglCopyBuffers(dp->disp.dpy, s->surface, target); in eglCopyBuffers()
1192 const egl_display_ptr dp = validate_display(dpy); in eglQueryString() local
1193 if (!dp) return (const char *) NULL; in eglQueryString()
1197 return dp->getVendorString(); in eglQueryString()
1199 return dp->getVersionString(); in eglQueryString()
1201 return dp->getExtensionString(); in eglQueryString()
1203 return dp->getClientApiString(); in eglQueryString()
1212 const egl_display_ptr dp = validate_display(dpy); in eglQueryStringImplementationANDROID() local
1213 if (!dp) return (const char *) NULL; in eglQueryStringImplementationANDROID()
1217 return dp->disp.queryString.vendor; in eglQueryStringImplementationANDROID()
1219 return dp->disp.queryString.version; in eglQueryStringImplementationANDROID()
1221 return dp->disp.queryString.extensions; in eglQueryStringImplementationANDROID()
1223 return dp->disp.queryString.clientApi; in eglQueryStringImplementationANDROID()
1237 const egl_display_ptr dp = validate_display(dpy); in eglSurfaceAttrib() local
1238 if (!dp) return EGL_FALSE; in eglSurfaceAttrib()
1240 SurfaceRef _s(dp.get(), surface); in eglSurfaceAttrib()
1247 dp->disp.dpy, s->surface, attribute, value); in eglSurfaceAttrib()
1257 const egl_display_ptr dp = validate_display(dpy); in eglBindTexImage() local
1258 if (!dp) return EGL_FALSE; in eglBindTexImage()
1260 SurfaceRef _s(dp.get(), surface); in eglBindTexImage()
1267 dp->disp.dpy, s->surface, buffer); in eglBindTexImage()
1277 const egl_display_ptr dp = validate_display(dpy); in eglReleaseTexImage() local
1278 if (!dp) return EGL_FALSE; in eglReleaseTexImage()
1280 SurfaceRef _s(dp.get(), surface); in eglReleaseTexImage()
1287 dp->disp.dpy, s->surface, buffer); in eglReleaseTexImage()
1296 const egl_display_ptr dp = validate_display(dpy); in eglSwapInterval() local
1297 if (!dp) return EGL_FALSE; in eglSwapInterval()
1302 res = cnx->egl.eglSwapInterval(dp->disp.dpy, interval); in eglSwapInterval()
1391 const egl_display_ptr dp = validate_display_connection(dpy, cnx); in eglCreatePbufferFromClientBuffer() local
1392 if (!dp) return EGL_FALSE; in eglCreatePbufferFromClientBuffer()
1395 dp->disp.dpy, buftype, buffer, config, attrib_list); in eglCreatePbufferFromClientBuffer()
1409 const egl_display_ptr dp = validate_display(dpy); in eglLockSurfaceKHR() local
1410 if (!dp) return EGL_FALSE; in eglLockSurfaceKHR()
1412 SurfaceRef _s(dp.get(), surface); in eglLockSurfaceKHR()
1419 dp->disp.dpy, s->surface, attrib_list); in eglLockSurfaceKHR()
1428 const egl_display_ptr dp = validate_display(dpy); in eglUnlockSurfaceKHR() local
1429 if (!dp) return EGL_FALSE; in eglUnlockSurfaceKHR()
1431 SurfaceRef _s(dp.get(), surface); in eglUnlockSurfaceKHR()
1437 return s->cnx->egl.eglUnlockSurfaceKHR(dp->disp.dpy, s->surface); in eglUnlockSurfaceKHR()
1447 const egl_display_ptr dp = validate_display(dpy); in eglCreateImageKHR() local
1448 if (!dp) return EGL_NO_IMAGE_KHR; in eglCreateImageKHR()
1450 ContextRef _c(dp.get(), ctx); in eglCreateImageKHR()
1457 dp->disp.dpy, in eglCreateImageKHR()
1468 const egl_display_ptr dp = validate_display(dpy); in eglDestroyImageKHR() local
1469 if (!dp) return EGL_FALSE; in eglDestroyImageKHR()
1474 result = cnx->egl.eglDestroyImageKHR(dp->disp.dpy, img); in eglDestroyImageKHR()
1488 const egl_display_ptr dp = validate_display(dpy); in eglCreateSyncKHR() local
1489 if (!dp) return EGL_NO_SYNC_KHR; in eglCreateSyncKHR()
1494 result = cnx->egl.eglCreateSyncKHR(dp->disp.dpy, type, attrib_list); in eglCreateSyncKHR()
1503 const egl_display_ptr dp = validate_display(dpy); in eglDestroySyncKHR() local
1504 if (!dp) return EGL_FALSE; in eglDestroySyncKHR()
1509 result = cnx->egl.eglDestroySyncKHR(dp->disp.dpy, sync); in eglDestroySyncKHR()
1517 const egl_display_ptr dp = validate_display(dpy); in eglSignalSyncKHR() local
1518 if (!dp) return EGL_FALSE; in eglSignalSyncKHR()
1524 dp->disp.dpy, sync, mode); in eglSignalSyncKHR()
1534 const egl_display_ptr dp = validate_display(dpy); in eglClientWaitSyncKHR() local
1535 if (!dp) return EGL_FALSE; in eglClientWaitSyncKHR()
1541 dp->disp.dpy, sync, flags, timeout); in eglClientWaitSyncKHR()
1551 const egl_display_ptr dp = validate_display(dpy); in eglGetSyncAttribKHR() local
1552 if (!dp) return EGL_FALSE; in eglGetSyncAttribKHR()
1558 dp->disp.dpy, sync, attribute, value); in eglGetSyncAttribKHR()
1567 const egl_display_ptr dp = validate_display(dpy); in eglCreateStreamKHR() local
1568 if (!dp) return EGL_NO_STREAM_KHR; in eglCreateStreamKHR()
1574 dp->disp.dpy, attrib_list); in eglCreateStreamKHR()
1583 const egl_display_ptr dp = validate_display(dpy); in eglDestroyStreamKHR() local
1584 if (!dp) return EGL_FALSE; in eglDestroyStreamKHR()
1590 dp->disp.dpy, stream); in eglDestroyStreamKHR()
1600 const egl_display_ptr dp = validate_display(dpy); in eglStreamAttribKHR() local
1601 if (!dp) return EGL_FALSE; in eglStreamAttribKHR()
1607 dp->disp.dpy, stream, attribute, value); in eglStreamAttribKHR()
1617 const egl_display_ptr dp = validate_display(dpy); in eglQueryStreamKHR() local
1618 if (!dp) return EGL_FALSE; in eglQueryStreamKHR()
1624 dp->disp.dpy, stream, attribute, value); in eglQueryStreamKHR()
1634 const egl_display_ptr dp = validate_display(dpy); in eglQueryStreamu64KHR() local
1635 if (!dp) return EGL_FALSE; in eglQueryStreamu64KHR()
1641 dp->disp.dpy, stream, attribute, value); in eglQueryStreamu64KHR()
1651 const egl_display_ptr dp = validate_display(dpy); in eglQueryStreamTimeKHR() local
1652 if (!dp) return EGL_FALSE; in eglQueryStreamTimeKHR()
1658 dp->disp.dpy, stream, attribute, value); in eglQueryStreamTimeKHR()
1668 egl_display_ptr dp = validate_display(dpy); in eglCreateStreamProducerSurfaceKHR() local
1669 if (!dp) return EGL_NO_SURFACE; in eglCreateStreamProducerSurfaceKHR()
1674 dp->disp.dpy, config, stream, attrib_list); in eglCreateStreamProducerSurfaceKHR()
1676 egl_surface_t* s = new egl_surface_t(dp.get(), config, NULL, in eglCreateStreamProducerSurfaceKHR()
1689 const egl_display_ptr dp = validate_display(dpy); in eglStreamConsumerGLTextureExternalKHR() local
1690 if (!dp) return EGL_FALSE; in eglStreamConsumerGLTextureExternalKHR()
1696 dp->disp.dpy, stream); in eglStreamConsumerGLTextureExternalKHR()
1706 const egl_display_ptr dp = validate_display(dpy); in eglStreamConsumerAcquireKHR() local
1707 if (!dp) return EGL_FALSE; in eglStreamConsumerAcquireKHR()
1713 dp->disp.dpy, stream); in eglStreamConsumerAcquireKHR()
1723 const egl_display_ptr dp = validate_display(dpy); in eglStreamConsumerReleaseKHR() local
1724 if (!dp) return EGL_FALSE; in eglStreamConsumerReleaseKHR()
1730 dp->disp.dpy, stream); in eglStreamConsumerReleaseKHR()
1740 const egl_display_ptr dp = validate_display(dpy); in eglGetStreamFileDescriptorKHR() local
1741 if (!dp) return EGL_NO_FILE_DESCRIPTOR_KHR; in eglGetStreamFileDescriptorKHR()
1747 dp->disp.dpy, stream); in eglGetStreamFileDescriptorKHR()
1757 const egl_display_ptr dp = validate_display(dpy); in eglCreateStreamFromFileDescriptorKHR() local
1758 if (!dp) return EGL_NO_STREAM_KHR; in eglCreateStreamFromFileDescriptorKHR()
1764 dp->disp.dpy, file_descriptor); in eglCreateStreamFromFileDescriptorKHR()
1775 const egl_display_ptr dp = validate_display(dpy); in eglWaitSyncKHR() local
1776 if (!dp) return EGL_FALSE; in eglWaitSyncKHR()
1780 result = cnx->egl.eglWaitSyncKHR(dp->disp.dpy, sync, flags); in eglWaitSyncKHR()
1793 const egl_display_ptr dp = validate_display(dpy); in eglDupNativeFenceFDANDROID() local
1794 if (!dp) return EGL_NO_NATIVE_FENCE_FD_ANDROID; in eglDupNativeFenceFDANDROID()
1799 result = cnx->egl.eglDupNativeFenceFDANDROID(dp->disp.dpy, sync); in eglDupNativeFenceFDANDROID()
1809 const egl_display_ptr dp = validate_display(dpy); in eglPresentationTimeANDROID() local
1810 if (!dp) { in eglPresentationTimeANDROID()
1814 SurfaceRef _s(dp.get(), surface); in eglPresentationTimeANDROID()
1873 const egl_display_ptr dp = validate_display(dpy); in eglSetDamageRegionKHR() local
1874 if (!dp) { in eglSetDamageRegionKHR()
1879 SurfaceRef _s(dp.get(), surface); in eglSetDamageRegionKHR()
1887 return s->cnx->egl.eglSetDamageRegionKHR(dp->disp.dpy, s->surface, in eglSetDamageRegionKHR()