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

Commit 97a9884e authored by Mathias Agopian's avatar Mathias Agopian
Browse files

Add a 'release' method to the SurfaceTexture public Java API

Bug: 5063618
Change-Id: I689cb0c01c14e597ccfb4eb0972e64fa570bd4e8
parent 05f267e7
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -910,6 +910,7 @@ void SurfaceTexture::abandon() {
    Mutex::Autolock lock(mMutex);
    Mutex::Autolock lock(mMutex);
    freeAllBuffers();
    freeAllBuffers();
    mAbandoned = true;
    mAbandoned = true;
    mCurrentTextureBuf.clear();
    mDequeueCondition.signal();
    mDequeueCondition.signal();
}
}