• Home
  • Raw
  • Download

Lines Matching refs:surface

33 EGLAPI void EGLAPIENTRY eglBeginFrame(EGLDisplay dpy, EGLSurface surface);
227 EGLSurface surface = eglCreateWindowSurface(mEglDisplay, mEglConfig, window, nullptr); in createSurface() local
228 LOG_ALWAYS_FATAL_IF(surface == EGL_NO_SURFACE, in createSurface()
233 …LOG_ALWAYS_FATAL_IF(eglSurfaceAttrib(mEglDisplay, surface, EGL_SWAP_BEHAVIOR, EGL_BUFFER_DESTROYED… in createSurface()
238 return surface; in createSurface()
241 void EglManager::destroySurface(EGLSurface surface) { in destroySurface() argument
242 if (isCurrent(surface)) { in destroySurface()
245 if (!eglDestroySurface(mEglDisplay, surface)) { in destroySurface()
246 ALOGW("Failed to destroy surface %p, error=%s", (void*)surface, egl_error_str()); in destroySurface()
266 bool EglManager::makeCurrent(EGLSurface surface, EGLint* errOut) { in makeCurrent() argument
267 if (isCurrent(surface)) return false; in makeCurrent()
269 if (surface == EGL_NO_SURFACE) { in makeCurrent()
271 surface = mPBufferSurface; in makeCurrent()
273 if (!eglMakeCurrent(mEglDisplay, surface, surface, mEglContext)) { in makeCurrent()
277 (void*)surface, egl_error_str(*errOut)); in makeCurrent()
280 (void*)surface, egl_error_str()); in makeCurrent()
283 mCurrentSurface = surface; in makeCurrent()
287 EGLint EglManager::queryBufferAge(EGLSurface surface) { in queryBufferAge() argument
295 eglQuerySurface(mEglDisplay, surface, EGL_BUFFER_AGE_EXT, &bufferAge); in queryBufferAge()
301 Frame EglManager::beginFrame(EGLSurface surface) { in beginFrame() argument
302 LOG_ALWAYS_FATAL_IF(surface == EGL_NO_SURFACE, in beginFrame()
304 makeCurrent(surface); in beginFrame()
306 frame.mSurface = surface; in beginFrame()
307 eglQuerySurface(mEglDisplay, surface, EGL_WIDTH, &frame.mWidth); in beginFrame()
308 eglQuerySurface(mEglDisplay, surface, EGL_HEIGHT, &frame.mHeight); in beginFrame()
309 frame.mBufferAge = queryBufferAge(surface); in beginFrame()
310 eglBeginFrame(mEglDisplay, surface); in beginFrame()
368 bool EglManager::setPreserveBuffer(EGLSurface surface, bool preserve) { in setPreserveBuffer() argument
371 bool preserved = eglSurfaceAttrib(mEglDisplay, surface, EGL_SWAP_BEHAVIOR, in setPreserveBuffer()
375 (void*) surface, egl_error_str()); in setPreserveBuffer()
378 if (eglQuerySurface(mEglDisplay, surface, EGL_SWAP_BEHAVIOR, &swapBehavior)) { in setPreserveBuffer()
382 (void*) surface, egl_error_str()); in setPreserveBuffer()