Home
last modified time | relevance | path

Searched refs:bindHelper (Results 1 – 2 of 2) sorted by relevance

/frameworks/native/services/surfaceflinger/RenderEngine/
DRenderEngine.cpp407 RE::BindNativeBufferAsFramebuffer* bindHelper) { in bindNativeBufferAsFrameBuffer() argument
408 bindHelper->mImage = eglCreateImageKHR(mEGLDisplay, EGL_NO_CONTEXT, EGL_NATIVE_BUFFER_ANDROID, in bindNativeBufferAsFrameBuffer()
410 if (bindHelper->mImage == EGL_NO_IMAGE_KHR) { in bindNativeBufferAsFrameBuffer()
411 bindHelper->mStatus = NO_MEMORY; in bindNativeBufferAsFrameBuffer()
416 bindImageAsFramebuffer(bindHelper->mImage, &bindHelper->mTexName, &bindHelper->mFbName, in bindNativeBufferAsFrameBuffer()
422 bindHelper->mStatus = glStatus == GL_FRAMEBUFFER_COMPLETE_OES ? NO_ERROR : BAD_VALUE; in bindNativeBufferAsFrameBuffer()
425 void RenderEngine::unbindNativeBufferAsFrameBuffer(RE::BindNativeBufferAsFramebuffer* bindHelper) { in unbindNativeBufferAsFrameBuffer() argument
426 if (bindHelper->mImage == EGL_NO_IMAGE_KHR) { in unbindNativeBufferAsFrameBuffer()
431 unbindFramebuffer(bindHelper->mTexName, bindHelper->mFbName); in unbindNativeBufferAsFrameBuffer()
432 eglDestroyImageKHR(mEGLDisplay, bindHelper->mImage); in unbindNativeBufferAsFrameBuffer()
DRenderEngine.h102 RE::BindNativeBufferAsFramebuffer* bindHelper) = 0;
103 virtual void unbindNativeBufferAsFrameBuffer(RE::BindNativeBufferAsFramebuffer* bindHelper) = 0;
242 RE::BindNativeBufferAsFramebuffer* bindHelper) override;
243 void unbindNativeBufferAsFrameBuffer(RE::BindNativeBufferAsFramebuffer* bindHelper) override;