Lines Matching refs:draw
209 draw(EGL_NO_SURFACE), in EGLContext_t()
766 if (context->read == context->draw) { in s_destroyPendingSurfacesInContext()
768 s_destroyPendingSurfaceAndSetNull(&context->draw); in s_destroyPendingSurfacesInContext()
769 if (context->draw == NULL) { in s_destroyPendingSurfacesInContext()
773 s_destroyPendingSurfaceAndSetNull(&context->draw); in s_destroyPendingSurfacesInContext()
1577 if (!ctx->draw) { in eglSwapInterval()
1580 egl_surface_t* draw(static_cast<egl_surface_t*>(ctx->draw)); in eglSwapInterval() local
1581 draw->setSwapInterval(interval); in eglSwapInterval()
1771 EGLBoolean eglMakeCurrent(EGLDisplay dpy, EGLSurface draw, EGLSurface read, EGLContext ctx) in eglMakeCurrent() argument
1774 VALIDATE_SURFACE_RETURN(draw, EGL_FALSE); in eglMakeCurrent()
1781 if ((read == EGL_NO_SURFACE && draw == EGL_NO_SURFACE) && (ctx != EGL_NO_CONTEXT)) in eglMakeCurrent()
1783 if ((read != EGL_NO_SURFACE || draw != EGL_NO_SURFACE) && (ctx == EGL_NO_CONTEXT)) in eglMakeCurrent()
1788 egl_surface_t * drawSurf = static_cast<egl_surface_t *>(draw); in eglMakeCurrent()
1800 (context && (context->draw == draw) && (context->read == read)))) { in eglMakeCurrent()
1807 if (prevCtx->draw) { in eglMakeCurrent()
1808 static_cast<egl_surface_t *>(prevCtx->draw)->setIsCurrent(false); in eglMakeCurrent()
1834 context->draw = draw; in eglMakeCurrent()
1981 return context->draw; in eglGetCurrentSurface()
2016 if (!context->draw) in eglQueryContext()