commit | 97a9884edcc6fbb311386ecfcd6e3045437f0df0 | [log] [tgz] |
---|---|---|
author | Mathias Agopian <mathias@google.com> | Wed Aug 03 15:18:36 2011 -0700 |
committer | Mathias Agopian <mathias@google.com> | Wed Aug 03 17:23:44 2011 -0700 |
tree | dda23262c8fedd883abb187f369fea84b746c67d | |
parent | 05f267e7f8383dbcae87f8b0f6ed9f8b6f9a76b8 [diff] [blame] |
Add a 'release' method to the SurfaceTexture public Java API Bug: 5063618 Change-Id: I689cb0c01c14e597ccfb4eb0972e64fa570bd4e8
diff --git a/libs/gui/SurfaceTexture.cpp b/libs/gui/SurfaceTexture.cpp index 4f51f03..1a036ee 100644 --- a/libs/gui/SurfaceTexture.cpp +++ b/libs/gui/SurfaceTexture.cpp
@@ -910,6 +910,7 @@ Mutex::Autolock lock(mMutex); freeAllBuffers(); mAbandoned = true; + mCurrentTextureBuf.clear(); mDequeueCondition.signal(); }