Add a 'release' method to the SurfaceTexture public Java API
Bug: 5063618 Change-Id: I689cb0c01c14e597ccfb4eb0972e64fa570bd4e8
This commit is contained in:
parent
05f267e7f8
commit
97a9884edc
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user