Lines Matching refs:mEglImage
219 if (item->mGraphicBuffer != nullptr || mEglSlots[slot].mEglImage.get() == nullptr) { in onAcquireBufferLocked()
220 mEglSlots[slot].mEglImage = new EglImage(st.mSlots[slot].mGraphicBuffer); in onAcquireBufferLocked()
253 err = mEglSlots[slot].mEglImage->createIfNeeded(mEglDisplay); in updateAndReleaseLocked()
283 sp<EglImage> nextTextureImage = mEglSlots[slot].mEglImage; in updateAndReleaseLocked()
436 if (!mEglSlots[slot].mEglImage.get()) { in attachToContext()
437 mEglSlots[slot].mEglImage = new EglImage(st.mSlots[slot].mGraphicBuffer); in attachToContext()
439 mCurrentTextureImage = mEglSlots[slot].mEglImage; in attachToContext()
596 mEglSlots[slotIndex].mEglImage.clear(); in onFreeBufferLocked()
604 : mGraphicBuffer(graphicBuffer), mEglImage(EGL_NO_IMAGE_KHR), mEglDisplay(EGL_NO_DISPLAY) {} in EglImage()
607 if (mEglImage != EGL_NO_IMAGE_KHR) { in ~EglImage()
608 if (!eglDestroyImageKHR(mEglDisplay, mEglImage)) { in ~EglImage()
617 bool haveImage = mEglImage != EGL_NO_IMAGE_KHR; in createIfNeeded()
620 if (!eglDestroyImageKHR(mEglDisplay, mEglImage)) { in createIfNeeded()
624 mEglImage = EGL_NO_IMAGE_KHR; in createIfNeeded()
629 if (mEglImage == EGL_NO_IMAGE_KHR) { in createIfNeeded()
631 mEglImage = createImage(mEglDisplay, mGraphicBuffer); in createIfNeeded()
635 if (mEglImage == EGL_NO_IMAGE_KHR) { in createIfNeeded()
648 glEGLImageTargetTexture2DOES(texTarget, static_cast<GLeglImageOES>(mEglImage)); in bindToTextureTarget()