Lines Matching refs:dp
299 egl_display_ptr dp = get_display(dpy); in eglInitialize() local
300 if (!dp) return setError(EGL_BAD_DISPLAY, EGL_FALSE); in eglInitialize()
302 EGLBoolean res = dp->initialize(major, minor); in eglInitialize()
315 egl_display_ptr dp = get_display(dpy); in eglTerminate() local
316 if (!dp) return setError(EGL_BAD_DISPLAY, EGL_FALSE); in eglTerminate()
318 EGLBoolean res = dp->terminate(); in eglTerminate()
333 const egl_display_ptr dp = validate_display(dpy); in eglGetConfigs() local
334 if (!dp) return EGL_FALSE; in eglGetConfigs()
346 dp->disp.dpy, configs, config_size, num_config); in eglGetConfigs()
358 const egl_display_ptr dp = validate_display(dpy); in eglChooseConfig() local
359 if (!dp) return EGL_FALSE; in eglChooseConfig()
412 dp->disp.dpy, aaAttribs, configs, config_size, &numConfigAA); in eglChooseConfig()
424 dp->disp.dpy, attrib_list, configs, config_size, num_config); in eglChooseConfig()
435 const egl_display_ptr dp = validate_display_connection(dpy, cnx); in eglGetConfigAttrib() local
436 if (!dp) return EGL_FALSE; in eglGetConfigAttrib()
439 dp->disp.dpy, config, attribute, value); in eglGetConfigAttrib()
473 egl_display_ptr dp = validate_display_connection(dpy, cnx); in eglCreateWindowSurface() local
474 if (dp) { in eglCreateWindowSurface()
475 EGLDisplay iDpy = dp->disp.dpy; in eglCreateWindowSurface()
515 if (attrib_list && dp->haveExtension("EGL_KHR_gl_colorspace")) { in eglCreateWindowSurface()
561 egl_surface_t* s = new egl_surface_t(dp.get(), config, window, in eglCreateWindowSurface()
580 egl_display_ptr dp = validate_display_connection(dpy, cnx); in eglCreatePixmapSurface() local
581 if (dp) { in eglCreatePixmapSurface()
583 dp->disp.dpy, config, pixmap, attrib_list); in eglCreatePixmapSurface()
585 egl_surface_t* s = new egl_surface_t(dp.get(), config, NULL, in eglCreatePixmapSurface()
599 egl_display_ptr dp = validate_display_connection(dpy, cnx); in eglCreatePbufferSurface() local
600 if (dp) { in eglCreatePbufferSurface()
602 dp->disp.dpy, config, attrib_list); in eglCreatePbufferSurface()
604 egl_surface_t* s = new egl_surface_t(dp.get(), config, NULL, in eglCreatePbufferSurface()
616 const egl_display_ptr dp = validate_display(dpy); in eglDestroySurface() local
617 if (!dp) return EGL_FALSE; in eglDestroySurface()
619 SurfaceRef _s(dp.get(), surface); in eglDestroySurface()
624 EGLBoolean result = s->cnx->egl.eglDestroySurface(dp->disp.dpy, s->surface); in eglDestroySurface()
636 const egl_display_ptr dp = validate_display(dpy); in eglQuerySurface() local
637 if (!dp) return EGL_FALSE; in eglQuerySurface()
639 SurfaceRef _s(dp.get(), surface); in eglQuerySurface()
645 dp->disp.dpy, s->surface, attribute, value); in eglQuerySurface()
652 const egl_display_ptr dp = validate_display(dpy); in eglBeginFrame() local
653 if (!dp) { in eglBeginFrame()
657 SurfaceRef _s(dp.get(), surface); in eglBeginFrame()
674 const egl_display_ptr dp = validate_display_connection(dpy, cnx); in eglCreateContext() local
675 if (dp) { in eglCreateContext()
677 if (!ContextRef(dp.get(), share_list).get()) { in eglCreateContext()
684 dp->disp.dpy, config, share_list, attrib_list); in eglCreateContext()
713 const egl_display_ptr dp = validate_display(dpy); in eglDestroyContext() local
714 if (!dp) in eglDestroyContext()
717 ContextRef _c(dp.get(), ctx); in eglDestroyContext()
722 EGLBoolean result = c->cnx->egl.eglDestroyContext(dp->disp.dpy, c->context); in eglDestroyContext()
734 egl_display_ptr dp = validate_display(dpy); in eglMakeCurrent() local
735 if (!dp) return setError(EGL_BAD_DISPLAY, EGL_FALSE); in eglMakeCurrent()
742 if (!dp->isReady()) return setError(EGL_NOT_INITIALIZED, EGL_FALSE); in eglMakeCurrent()
746 ContextRef _c(dp.get(), ctx); in eglMakeCurrent()
747 SurfaceRef _d(dp.get(), draw); in eglMakeCurrent()
748 SurfaceRef _r(dp.get(), read); in eglMakeCurrent()
800 EGLBoolean result = dp->makeCurrent(c, cur_c, in eglMakeCurrent()
829 const egl_display_ptr dp = validate_display(dpy); in eglQueryContext() local
830 if (!dp) return EGL_FALSE; in eglQueryContext()
832 ContextRef _c(dp.get(), ctx); in eglQueryContext()
837 dp->disp.dpy, c->context, attribute, value); in eglQueryContext()
1085 const egl_display_ptr dp = validate_display(dpy); in eglSwapBuffersWithDamageKHR() local
1086 if (!dp) return EGL_FALSE; in eglSwapBuffersWithDamageKHR()
1088 SurfaceRef _s(dp.get(), draw); in eglSwapBuffersWithDamageKHR()
1094 if (CC_UNLIKELY(dp->traceGpuCompletion)) { in eglSwapBuffersWithDamageKHR()
1101 if (CC_UNLIKELY(dp->finishOnSwap)) { in eglSwapBuffersWithDamageKHR()
1112 return s->cnx->egl.eglSwapBuffers(dp->disp.dpy, s->surface); in eglSwapBuffersWithDamageKHR()
1133 return s->cnx->egl.eglSwapBuffersWithDamageKHR(dp->disp.dpy, s->surface, in eglSwapBuffersWithDamageKHR()
1136 return s->cnx->egl.eglSwapBuffers(dp->disp.dpy, s->surface); in eglSwapBuffersWithDamageKHR()
1150 const egl_display_ptr dp = validate_display(dpy); in eglCopyBuffers() local
1151 if (!dp) return EGL_FALSE; in eglCopyBuffers()
1153 SurfaceRef _s(dp.get(), surface); in eglCopyBuffers()
1158 return s->cnx->egl.eglCopyBuffers(dp->disp.dpy, s->surface, target); in eglCopyBuffers()
1165 const egl_display_ptr dp = validate_display(dpy); in eglQueryString() local
1166 if (!dp) return (const char *) NULL; in eglQueryString()
1170 return dp->getVendorString(); in eglQueryString()
1172 return dp->getVersionString(); in eglQueryString()
1174 return dp->getExtensionString(); in eglQueryString()
1176 return dp->getClientApiString(); in eglQueryString()
1185 const egl_display_ptr dp = validate_display(dpy); in eglQueryStringImplementationANDROID() local
1186 if (!dp) return (const char *) NULL; in eglQueryStringImplementationANDROID()
1190 return dp->disp.queryString.vendor; in eglQueryStringImplementationANDROID()
1192 return dp->disp.queryString.version; in eglQueryStringImplementationANDROID()
1194 return dp->disp.queryString.extensions; in eglQueryStringImplementationANDROID()
1196 return dp->disp.queryString.clientApi; in eglQueryStringImplementationANDROID()
1210 const egl_display_ptr dp = validate_display(dpy); in eglSurfaceAttrib() local
1211 if (!dp) return EGL_FALSE; in eglSurfaceAttrib()
1213 SurfaceRef _s(dp.get(), surface); in eglSurfaceAttrib()
1235 dp->disp.dpy, s->surface, attribute, value); in eglSurfaceAttrib()
1245 const egl_display_ptr dp = validate_display(dpy); in eglBindTexImage() local
1246 if (!dp) return EGL_FALSE; in eglBindTexImage()
1248 SurfaceRef _s(dp.get(), surface); in eglBindTexImage()
1255 dp->disp.dpy, s->surface, buffer); in eglBindTexImage()
1265 const egl_display_ptr dp = validate_display(dpy); in eglReleaseTexImage() local
1266 if (!dp) return EGL_FALSE; in eglReleaseTexImage()
1268 SurfaceRef _s(dp.get(), surface); in eglReleaseTexImage()
1275 dp->disp.dpy, s->surface, buffer); in eglReleaseTexImage()
1284 const egl_display_ptr dp = validate_display(dpy); in eglSwapInterval() local
1285 if (!dp) return EGL_FALSE; in eglSwapInterval()
1290 res = cnx->egl.eglSwapInterval(dp->disp.dpy, interval); in eglSwapInterval()
1374 const egl_display_ptr dp = validate_display_connection(dpy, cnx); in eglCreatePbufferFromClientBuffer() local
1375 if (!dp) return EGL_FALSE; in eglCreatePbufferFromClientBuffer()
1378 dp->disp.dpy, buftype, buffer, config, attrib_list); in eglCreatePbufferFromClientBuffer()
1392 const egl_display_ptr dp = validate_display(dpy); in eglLockSurfaceKHR() local
1393 if (!dp) return EGL_FALSE; in eglLockSurfaceKHR()
1395 SurfaceRef _s(dp.get(), surface); in eglLockSurfaceKHR()
1402 dp->disp.dpy, s->surface, attrib_list); in eglLockSurfaceKHR()
1411 const egl_display_ptr dp = validate_display(dpy); in eglUnlockSurfaceKHR() local
1412 if (!dp) return EGL_FALSE; in eglUnlockSurfaceKHR()
1414 SurfaceRef _s(dp.get(), surface); in eglUnlockSurfaceKHR()
1420 return s->cnx->egl.eglUnlockSurfaceKHR(dp->disp.dpy, s->surface); in eglUnlockSurfaceKHR()
1430 const egl_display_ptr dp = validate_display(dpy); in eglCreateImageKHR() local
1431 if (!dp) return EGL_NO_IMAGE_KHR; in eglCreateImageKHR()
1433 ContextRef _c(dp.get(), ctx); in eglCreateImageKHR()
1440 dp->disp.dpy, in eglCreateImageKHR()
1451 const egl_display_ptr dp = validate_display(dpy); in eglDestroyImageKHR() local
1452 if (!dp) return EGL_FALSE; in eglDestroyImageKHR()
1457 result = cnx->egl.eglDestroyImageKHR(dp->disp.dpy, img); in eglDestroyImageKHR()
1471 const egl_display_ptr dp = validate_display(dpy); in eglCreateSyncKHR() local
1472 if (!dp) return EGL_NO_SYNC_KHR; in eglCreateSyncKHR()
1477 result = cnx->egl.eglCreateSyncKHR(dp->disp.dpy, type, attrib_list); in eglCreateSyncKHR()
1486 const egl_display_ptr dp = validate_display(dpy); in eglDestroySyncKHR() local
1487 if (!dp) return EGL_FALSE; in eglDestroySyncKHR()
1492 result = cnx->egl.eglDestroySyncKHR(dp->disp.dpy, sync); in eglDestroySyncKHR()
1500 const egl_display_ptr dp = validate_display(dpy); in eglSignalSyncKHR() local
1501 if (!dp) return EGL_FALSE; in eglSignalSyncKHR()
1507 dp->disp.dpy, sync, mode); in eglSignalSyncKHR()
1517 const egl_display_ptr dp = validate_display(dpy); in eglClientWaitSyncKHR() local
1518 if (!dp) return EGL_FALSE; in eglClientWaitSyncKHR()
1524 dp->disp.dpy, sync, flags, timeout); in eglClientWaitSyncKHR()
1534 const egl_display_ptr dp = validate_display(dpy); in eglGetSyncAttribKHR() local
1535 if (!dp) return EGL_FALSE; in eglGetSyncAttribKHR()
1541 dp->disp.dpy, sync, attribute, value); in eglGetSyncAttribKHR()
1550 const egl_display_ptr dp = validate_display(dpy); in eglCreateStreamKHR() local
1551 if (!dp) return EGL_NO_STREAM_KHR; in eglCreateStreamKHR()
1557 dp->disp.dpy, attrib_list); in eglCreateStreamKHR()
1566 const egl_display_ptr dp = validate_display(dpy); in eglDestroyStreamKHR() local
1567 if (!dp) return EGL_FALSE; in eglDestroyStreamKHR()
1573 dp->disp.dpy, stream); in eglDestroyStreamKHR()
1583 const egl_display_ptr dp = validate_display(dpy); in eglStreamAttribKHR() local
1584 if (!dp) return EGL_FALSE; in eglStreamAttribKHR()
1590 dp->disp.dpy, stream, attribute, value); in eglStreamAttribKHR()
1600 const egl_display_ptr dp = validate_display(dpy); in eglQueryStreamKHR() local
1601 if (!dp) return EGL_FALSE; in eglQueryStreamKHR()
1607 dp->disp.dpy, stream, attribute, value); in eglQueryStreamKHR()
1617 const egl_display_ptr dp = validate_display(dpy); in eglQueryStreamu64KHR() local
1618 if (!dp) return EGL_FALSE; in eglQueryStreamu64KHR()
1624 dp->disp.dpy, stream, attribute, value); in eglQueryStreamu64KHR()
1634 const egl_display_ptr dp = validate_display(dpy); in eglQueryStreamTimeKHR() local
1635 if (!dp) return EGL_FALSE; in eglQueryStreamTimeKHR()
1641 dp->disp.dpy, stream, attribute, value); in eglQueryStreamTimeKHR()
1651 egl_display_ptr dp = validate_display(dpy); in eglCreateStreamProducerSurfaceKHR() local
1652 if (!dp) return EGL_NO_SURFACE; in eglCreateStreamProducerSurfaceKHR()
1657 dp->disp.dpy, config, stream, attrib_list); in eglCreateStreamProducerSurfaceKHR()
1659 egl_surface_t* s = new egl_surface_t(dp.get(), config, NULL, in eglCreateStreamProducerSurfaceKHR()
1672 const egl_display_ptr dp = validate_display(dpy); in eglStreamConsumerGLTextureExternalKHR() local
1673 if (!dp) return EGL_FALSE; in eglStreamConsumerGLTextureExternalKHR()
1679 dp->disp.dpy, stream); in eglStreamConsumerGLTextureExternalKHR()
1689 const egl_display_ptr dp = validate_display(dpy); in eglStreamConsumerAcquireKHR() local
1690 if (!dp) return EGL_FALSE; in eglStreamConsumerAcquireKHR()
1696 dp->disp.dpy, stream); in eglStreamConsumerAcquireKHR()
1706 const egl_display_ptr dp = validate_display(dpy); in eglStreamConsumerReleaseKHR() local
1707 if (!dp) return EGL_FALSE; in eglStreamConsumerReleaseKHR()
1713 dp->disp.dpy, stream); in eglStreamConsumerReleaseKHR()
1723 const egl_display_ptr dp = validate_display(dpy); in eglGetStreamFileDescriptorKHR() local
1724 if (!dp) return EGL_NO_FILE_DESCRIPTOR_KHR; in eglGetStreamFileDescriptorKHR()
1730 dp->disp.dpy, stream); in eglGetStreamFileDescriptorKHR()
1740 const egl_display_ptr dp = validate_display(dpy); in eglCreateStreamFromFileDescriptorKHR() local
1741 if (!dp) return EGL_NO_STREAM_KHR; in eglCreateStreamFromFileDescriptorKHR()
1747 dp->disp.dpy, file_descriptor); in eglCreateStreamFromFileDescriptorKHR()
1758 const egl_display_ptr dp = validate_display(dpy); in eglWaitSyncKHR() local
1759 if (!dp) return EGL_FALSE; in eglWaitSyncKHR()
1763 result = cnx->egl.eglWaitSyncKHR(dp->disp.dpy, sync, flags); in eglWaitSyncKHR()
1776 const egl_display_ptr dp = validate_display(dpy); in eglDupNativeFenceFDANDROID() local
1777 if (!dp) return EGL_NO_NATIVE_FENCE_FD_ANDROID; in eglDupNativeFenceFDANDROID()
1782 result = cnx->egl.eglDupNativeFenceFDANDROID(dp->disp.dpy, sync); in eglDupNativeFenceFDANDROID()
1792 const egl_display_ptr dp = validate_display(dpy); in eglPresentationTimeANDROID() local
1793 if (!dp) { in eglPresentationTimeANDROID()
1797 SurfaceRef _s(dp.get(), surface); in eglPresentationTimeANDROID()
1996 const egl_display_ptr dp = validate_display(dpy); in eglSetDamageRegionKHR() local
1997 if (!dp) { in eglSetDamageRegionKHR()
2002 SurfaceRef _s(dp.get(), surface); in eglSetDamageRegionKHR()
2010 return s->cnx->egl.eglSetDamageRegionKHR(dp->disp.dpy, s->surface, in eglSetDamageRegionKHR()
2023 const egl_display_ptr dp = validate_display(dpy); in eglGetFrameTimestampsANDROID() local
2024 if (!dp) { in eglGetFrameTimestampsANDROID()
2029 SurfaceRef _s(dp.get(), surface); in eglGetFrameTimestampsANDROID()
2092 const egl_display_ptr dp = validate_display(dpy); in eglQueryTimestampSupportedANDROID() local
2093 if (!dp) { in eglQueryTimestampSupportedANDROID()
2098 SurfaceRef _s(dp.get(), surface); in eglQueryTimestampSupportedANDROID()