Lines Matching refs:surface
134 bool GLHelper::makeCurrent(EGLSurface surface) {
137 result = eglMakeCurrent(mDisplay, surface, surface, mContext);
144 eglQuerySurface(mDisplay, surface, EGL_WIDTH, &w);
145 eglQuerySurface(mDisplay, surface, EGL_HEIGHT, &h);
152 sp<GLConsumer>* glConsumer, EGLSurface* surface,
165 return createNamedSurfaceTexture(*name, w, h, glConsumer, surface);
168 void GLHelper::destroySurface(EGLSurface* surface) {
169 if (eglGetCurrentSurface(EGL_READ) == *surface ||
170 eglGetCurrentSurface(EGL_DRAW) == *surface) {
174 eglDestroySurface(mDisplay, *surface);
175 *surface = EGL_NO_SURFACE;
178 bool GLHelper::swapBuffers(EGLSurface surface) {
180 result = eglSwapBuffers(mDisplay, surface);
202 sp<GLConsumer>* glConsumer, EGLSurface* surface) {
220 *surface = s;
246 sp<SurfaceControl>* surfaceControl, EGLSurface* surface) {
299 *surface = s;