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

Bug: 5063618
Change-Id: I689cb0c01c14e597ccfb4eb0972e64fa570bd4e8
This commit is contained in:
Mathias Agopian 2011-08-03 15:18:36 -07:00
parent 05f267e7f8
commit 97a9884edc

View File

@ -910,6 +910,7 @@ void SurfaceTexture::abandon() {
Mutex::Autolock lock(mMutex);
freeAllBuffers();
mAbandoned = true;
mCurrentTextureBuf.clear();
mDequeueCondition.signal();
}