Lines Matching refs:dp
228 egl_display_ptr dp = get_display(dpy); in eglInitialize() local
229 if (!dp) return setError(EGL_BAD_DISPLAY, EGL_FALSE); in eglInitialize()
231 EGLBoolean res = dp->initialize(major, minor); in eglInitialize()
244 egl_display_ptr dp = get_display(dpy); in eglTerminate() local
245 if (!dp) return setError(EGL_BAD_DISPLAY, EGL_FALSE); in eglTerminate()
247 EGLBoolean res = dp->terminate(); in eglTerminate()
262 const egl_display_ptr dp = validate_display(dpy); in eglGetConfigs() local
263 if (!dp) return EGL_FALSE; in eglGetConfigs()
275 dp->disp.dpy, configs, config_size, num_config); in eglGetConfigs()
287 const egl_display_ptr dp = validate_display(dpy); in eglChooseConfig() local
288 if (!dp) return EGL_FALSE; in eglChooseConfig()
341 dp->disp.dpy, aaAttribs, configs, config_size, &numConfigAA); in eglChooseConfig()
353 dp->disp.dpy, attrib_list, configs, config_size, num_config); in eglChooseConfig()
364 const egl_display_ptr dp = validate_display_connection(dpy, cnx); in eglGetConfigAttrib() local
365 if (!dp) return EGL_FALSE; in eglGetConfigAttrib()
368 dp->disp.dpy, config, attribute, value); in eglGetConfigAttrib()
407 egl_display_ptr dp = validate_display_connection(dpy, cnx); in eglCreateWindowSurface() local
408 if (dp) { in eglCreateWindowSurface()
409 EGLDisplay iDpy = dp->disp.dpy; in eglCreateWindowSurface()
437 dp->haveExtension("EGL_KHR_gl_colorspace")) { in eglCreateWindowSurface()
476 if (attrib_list && dp->haveExtension("EGL_KHR_gl_colorspace")) { in eglCreateWindowSurface()
512 egl_surface_t* s = new egl_surface_t(dp.get(), config, window, in eglCreateWindowSurface()
531 egl_display_ptr dp = validate_display_connection(dpy, cnx); in eglCreatePixmapSurface() local
532 if (dp) { in eglCreatePixmapSurface()
534 dp->disp.dpy, config, pixmap, attrib_list); in eglCreatePixmapSurface()
536 egl_surface_t* s = new egl_surface_t(dp.get(), config, NULL, in eglCreatePixmapSurface()
550 egl_display_ptr dp = validate_display_connection(dpy, cnx); in eglCreatePbufferSurface() local
551 if (dp) { in eglCreatePbufferSurface()
553 dp->disp.dpy, config, attrib_list); in eglCreatePbufferSurface()
555 egl_surface_t* s = new egl_surface_t(dp.get(), config, NULL, in eglCreatePbufferSurface()
567 const egl_display_ptr dp = validate_display(dpy); in eglDestroySurface() local
568 if (!dp) return EGL_FALSE; in eglDestroySurface()
570 SurfaceRef _s(dp.get(), surface); in eglDestroySurface()
575 EGLBoolean result = s->cnx->egl.eglDestroySurface(dp->disp.dpy, s->surface); in eglDestroySurface()
587 const egl_display_ptr dp = validate_display(dpy); in eglQuerySurface() local
588 if (!dp) return EGL_FALSE; in eglQuerySurface()
590 SurfaceRef _s(dp.get(), surface); in eglQuerySurface()
596 dp->disp.dpy, s->surface, attribute, value); in eglQuerySurface()
603 const egl_display_ptr dp = validate_display(dpy); in eglBeginFrame() local
604 if (!dp) { in eglBeginFrame()
608 SurfaceRef _s(dp.get(), surface); in eglBeginFrame()
625 const egl_display_ptr dp = validate_display_connection(dpy, cnx); in eglCreateContext() local
626 if (dp) { in eglCreateContext()
628 if (!ContextRef(dp.get(), share_list).get()) { in eglCreateContext()
635 dp->disp.dpy, config, share_list, attrib_list); in eglCreateContext()
668 const egl_display_ptr dp = validate_display(dpy); in eglDestroyContext() local
669 if (!dp) in eglDestroyContext()
672 ContextRef _c(dp.get(), ctx); in eglDestroyContext()
677 EGLBoolean result = c->cnx->egl.eglDestroyContext(dp->disp.dpy, c->context); in eglDestroyContext()
689 egl_display_ptr dp = validate_display(dpy); in eglMakeCurrent() local
690 if (!dp) return setError(EGL_BAD_DISPLAY, EGL_FALSE); in eglMakeCurrent()
697 if (!dp->isReady()) return setError(EGL_NOT_INITIALIZED, EGL_FALSE); in eglMakeCurrent()
701 ContextRef _c(dp.get(), ctx); in eglMakeCurrent()
702 SurfaceRef _d(dp.get(), draw); in eglMakeCurrent()
703 SurfaceRef _r(dp.get(), read); in eglMakeCurrent()
755 EGLBoolean result = dp->makeCurrent(c, cur_c, in eglMakeCurrent()
788 const egl_display_ptr dp = validate_display(dpy); in eglQueryContext() local
789 if (!dp) return EGL_FALSE; in eglQueryContext()
791 ContextRef _c(dp.get(), ctx); in eglQueryContext()
796 dp->disp.dpy, c->context, attribute, value); in eglQueryContext()
1051 const egl_display_ptr dp = validate_display(dpy); in eglSwapBuffers() local
1052 if (!dp) return EGL_FALSE; in eglSwapBuffers()
1054 SurfaceRef _s(dp.get(), draw); in eglSwapBuffers()
1088 if (CC_UNLIKELY(dp->traceGpuCompletion)) { in eglSwapBuffers()
1095 if (CC_UNLIKELY(dp->finishOnSwap)) { in eglSwapBuffers()
1105 return s->cnx->egl.eglSwapBuffers(dp->disp.dpy, s->surface); in eglSwapBuffers()
1113 const egl_display_ptr dp = validate_display(dpy); in eglCopyBuffers() local
1114 if (!dp) return EGL_FALSE; in eglCopyBuffers()
1116 SurfaceRef _s(dp.get(), surface); in eglCopyBuffers()
1121 return s->cnx->egl.eglCopyBuffers(dp->disp.dpy, s->surface, target); in eglCopyBuffers()
1128 const egl_display_ptr dp = validate_display(dpy); in eglQueryString() local
1129 if (!dp) return (const char *) NULL; in eglQueryString()
1133 return dp->getVendorString(); in eglQueryString()
1135 return dp->getVersionString(); in eglQueryString()
1137 return dp->getExtensionString(); in eglQueryString()
1139 return dp->getClientApiString(); in eglQueryString()
1148 const egl_display_ptr dp = validate_display(dpy); in eglQueryStringImplementationANDROID() local
1149 if (!dp) return (const char *) NULL; in eglQueryStringImplementationANDROID()
1153 return dp->disp.queryString.vendor; in eglQueryStringImplementationANDROID()
1155 return dp->disp.queryString.version; in eglQueryStringImplementationANDROID()
1157 return dp->disp.queryString.extensions; in eglQueryStringImplementationANDROID()
1159 return dp->disp.queryString.clientApi; in eglQueryStringImplementationANDROID()
1173 const egl_display_ptr dp = validate_display(dpy); in eglSurfaceAttrib() local
1174 if (!dp) return EGL_FALSE; in eglSurfaceAttrib()
1176 SurfaceRef _s(dp.get(), surface); in eglSurfaceAttrib()
1183 dp->disp.dpy, s->surface, attribute, value); in eglSurfaceAttrib()
1193 const egl_display_ptr dp = validate_display(dpy); in eglBindTexImage() local
1194 if (!dp) return EGL_FALSE; in eglBindTexImage()
1196 SurfaceRef _s(dp.get(), surface); in eglBindTexImage()
1203 dp->disp.dpy, s->surface, buffer); in eglBindTexImage()
1213 const egl_display_ptr dp = validate_display(dpy); in eglReleaseTexImage() local
1214 if (!dp) return EGL_FALSE; in eglReleaseTexImage()
1216 SurfaceRef _s(dp.get(), surface); in eglReleaseTexImage()
1223 dp->disp.dpy, s->surface, buffer); in eglReleaseTexImage()
1232 const egl_display_ptr dp = validate_display(dpy); in eglSwapInterval() local
1233 if (!dp) return EGL_FALSE; in eglSwapInterval()
1238 res = cnx->egl.eglSwapInterval(dp->disp.dpy, interval); in eglSwapInterval()
1327 const egl_display_ptr dp = validate_display_connection(dpy, cnx); in eglCreatePbufferFromClientBuffer() local
1328 if (!dp) return EGL_FALSE; in eglCreatePbufferFromClientBuffer()
1331 dp->disp.dpy, buftype, buffer, config, attrib_list); in eglCreatePbufferFromClientBuffer()
1345 const egl_display_ptr dp = validate_display(dpy); in eglLockSurfaceKHR() local
1346 if (!dp) return EGL_FALSE; in eglLockSurfaceKHR()
1348 SurfaceRef _s(dp.get(), surface); in eglLockSurfaceKHR()
1355 dp->disp.dpy, s->surface, attrib_list); in eglLockSurfaceKHR()
1364 const egl_display_ptr dp = validate_display(dpy); in eglUnlockSurfaceKHR() local
1365 if (!dp) return EGL_FALSE; in eglUnlockSurfaceKHR()
1367 SurfaceRef _s(dp.get(), surface); in eglUnlockSurfaceKHR()
1373 return s->cnx->egl.eglUnlockSurfaceKHR(dp->disp.dpy, s->surface); in eglUnlockSurfaceKHR()
1383 const egl_display_ptr dp = validate_display(dpy); in eglCreateImageKHR() local
1384 if (!dp) return EGL_NO_IMAGE_KHR; in eglCreateImageKHR()
1386 ContextRef _c(dp.get(), ctx); in eglCreateImageKHR()
1393 dp->disp.dpy, in eglCreateImageKHR()
1404 const egl_display_ptr dp = validate_display(dpy); in eglDestroyImageKHR() local
1405 if (!dp) return EGL_FALSE; in eglDestroyImageKHR()
1410 result = cnx->egl.eglDestroyImageKHR(dp->disp.dpy, img); in eglDestroyImageKHR()
1424 const egl_display_ptr dp = validate_display(dpy); in eglCreateSyncKHR() local
1425 if (!dp) return EGL_NO_SYNC_KHR; in eglCreateSyncKHR()
1430 result = cnx->egl.eglCreateSyncKHR(dp->disp.dpy, type, attrib_list); in eglCreateSyncKHR()
1439 const egl_display_ptr dp = validate_display(dpy); in eglDestroySyncKHR() local
1440 if (!dp) return EGL_FALSE; in eglDestroySyncKHR()
1445 result = cnx->egl.eglDestroySyncKHR(dp->disp.dpy, sync); in eglDestroySyncKHR()
1453 const egl_display_ptr dp = validate_display(dpy); in eglSignalSyncKHR() local
1454 if (!dp) return EGL_FALSE; in eglSignalSyncKHR()
1460 dp->disp.dpy, sync, mode); in eglSignalSyncKHR()
1470 const egl_display_ptr dp = validate_display(dpy); in eglClientWaitSyncKHR() local
1471 if (!dp) return EGL_FALSE; in eglClientWaitSyncKHR()
1477 dp->disp.dpy, sync, flags, timeout); in eglClientWaitSyncKHR()
1487 const egl_display_ptr dp = validate_display(dpy); in eglGetSyncAttribKHR() local
1488 if (!dp) return EGL_FALSE; in eglGetSyncAttribKHR()
1494 dp->disp.dpy, sync, attribute, value); in eglGetSyncAttribKHR()
1505 const egl_display_ptr dp = validate_display(dpy); in eglWaitSyncKHR() local
1506 if (!dp) return EGL_FALSE; in eglWaitSyncKHR()
1510 result = cnx->egl.eglWaitSyncKHR(dp->disp.dpy, sync, flags); in eglWaitSyncKHR()
1523 const egl_display_ptr dp = validate_display(dpy); in eglDupNativeFenceFDANDROID() local
1524 if (!dp) return EGL_NO_NATIVE_FENCE_FD_ANDROID; in eglDupNativeFenceFDANDROID()
1529 result = cnx->egl.eglDupNativeFenceFDANDROID(dp->disp.dpy, sync); in eglDupNativeFenceFDANDROID()
1539 const egl_display_ptr dp = validate_display(dpy); in eglPresentationTimeANDROID() local
1540 if (!dp) { in eglPresentationTimeANDROID()
1544 SurfaceRef _s(dp.get(), surface); in eglPresentationTimeANDROID()