Lines Matching refs:s_egl

70         EGLContext currentContext = s_egl.eglGetCurrentContext();  in setupContext()
71 EGLSurface currentDrawSurface = s_egl.eglGetCurrentSurface(EGL_DRAW); in setupContext()
72 EGLSurface currentReadSurface = s_egl.eglGetCurrentSurface(EGL_READ); in setupContext()
85 if (!s_egl.eglMakeCurrent(mDisplay, mSurface, mSurface, mContext)) { in setupContext()
88 GL_LOG("Failed to make display surface context current: %d", s_egl.eglGetError()); in setupContext()
103 EGLContext currentContext = s_egl.eglGetCurrentContext(); in teardownContext()
104 EGLSurface currentDrawSurface = s_egl.eglGetCurrentSurface(EGL_DRAW); in teardownContext()
105 EGLSurface currentReadSurface = s_egl.eglGetCurrentSurface(EGL_READ); in teardownContext()
121 if (!s_egl.eglMakeCurrent(mDisplay, in teardownContext()
125 ERR("Failed to restore previous context: %d", s_egl.eglGetError()); in teardownContext()
147 EGLContext context = s_egl.eglCreateContext(display, config, shareContext, contextAttribs); in createPbufferSurface()
158 EGLSurface surface = s_egl.eglCreatePbufferSurface(display, config, surfaceAttribs); in createPbufferSurface()
174 EGLContext context = s_egl.eglCreateContext(display, config, shareContext, contextAttribs); in createWindowSurface()
180 EGLSurface surface = s_egl.eglCreateWindowSurface(display, config, window, nullptr); in createWindowSurface()
190 if (!s_egl.eglMakeCurrent(mDisplay, mSurface, mSurface, mContext)) { in bindContext()
191 ERR("Failed to make display surface context current: %d", s_egl.eglGetError()); in bindContext()
208 s_egl.eglDestroySurface(mDisplay, mSurface); in ~DisplaySurfaceGl()
211 s_egl.eglDestroyContext(mDisplay, mContext); in ~DisplaySurfaceGl()