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

Commit 5838e98c 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 am: 20934502

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

Change-Id: I514f88249ab87bab77a2d5671f915b6da1632523
parents 4d22ff37 20934502
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();
}