Lines Matching refs:surface
133 bool GLHelper::makeCurrent(EGLSurface surface) { in makeCurrent() argument
136 result = eglMakeCurrent(mDisplay, surface, surface, mContext); in makeCurrent()
143 eglQuerySurface(mDisplay, surface, EGL_WIDTH, &w); in makeCurrent()
144 eglQuerySurface(mDisplay, surface, EGL_HEIGHT, &h); in makeCurrent()
151 sp<GLConsumer>* glConsumer, EGLSurface* surface, in createSurfaceTexture() argument
164 return createNamedSurfaceTexture(*name, w, h, glConsumer, surface); in createSurfaceTexture()
167 void GLHelper::destroySurface(EGLSurface* surface) { in destroySurface() argument
168 if (eglGetCurrentSurface(EGL_READ) == *surface || in destroySurface()
169 eglGetCurrentSurface(EGL_DRAW) == *surface) { in destroySurface()
173 eglDestroySurface(mDisplay, *surface); in destroySurface()
174 *surface = EGL_NO_SURFACE; in destroySurface()
177 bool GLHelper::swapBuffers(EGLSurface surface) { in swapBuffers() argument
179 result = eglSwapBuffers(mDisplay, surface); in swapBuffers()
201 sp<GLConsumer>* glConsumer, EGLSurface* surface) { in createNamedSurfaceTexture() argument
219 *surface = s; in createNamedSurfaceTexture()
245 sp<SurfaceControl>* surfaceControl, EGLSurface* surface) { in createWindowSurface() argument
284 *surface = s; in createWindowSurface()