Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 20934502 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "[surfacetexture] Add patch to release current EglImage" am: 43344852

Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1956042

Change-Id: Iebae9f515a7f3e70f3da39786110ad2864a7acdf
parents bd970d02 43344852
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -593,6 +593,10 @@ status_t EGLConsumer::doGLFenceWaitLocked(SurfaceTexture& st) const {
}

void EGLConsumer::onFreeBufferLocked(int slotIndex) {
    if (mEglSlots[slotIndex].mEglImage != nullptr &&
        mEglSlots[slotIndex].mEglImage == mCurrentTextureImage) {
        mCurrentTextureImage.clear();
    }
    mEglSlots[slotIndex].mEglImage.clear();
}