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

Commit d1347913 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...

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

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

Change-Id: I81da86d18bf68b9656d2ab950b28bba981b6dad7
parents 3fc5f4b7 5838e98c
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();
}