Loading libs/nativedisplay/surfacetexture/EGLConsumer.cpp +4 −0 Original line number Original line Diff line number Diff line Loading @@ -593,6 +593,10 @@ status_t EGLConsumer::doGLFenceWaitLocked(SurfaceTexture& st) const { } } void EGLConsumer::onFreeBufferLocked(int slotIndex) { void EGLConsumer::onFreeBufferLocked(int slotIndex) { if (mEglSlots[slotIndex].mEglImage != nullptr && mEglSlots[slotIndex].mEglImage == mCurrentTextureImage) { mCurrentTextureImage.clear(); } mEglSlots[slotIndex].mEglImage.clear(); mEglSlots[slotIndex].mEglImage.clear(); } } Loading Loading
libs/nativedisplay/surfacetexture/EGLConsumer.cpp +4 −0 Original line number Original line Diff line number Diff line Loading @@ -593,6 +593,10 @@ status_t EGLConsumer::doGLFenceWaitLocked(SurfaceTexture& st) const { } } void EGLConsumer::onFreeBufferLocked(int slotIndex) { void EGLConsumer::onFreeBufferLocked(int slotIndex) { if (mEglSlots[slotIndex].mEglImage != nullptr && mEglSlots[slotIndex].mEglImage == mCurrentTextureImage) { mCurrentTextureImage.clear(); } mEglSlots[slotIndex].mEglImage.clear(); mEglSlots[slotIndex].mEglImage.clear(); } } Loading