diff options
| author | 2011-08-03 15:18:36 -0700 | |
|---|---|---|
| committer | 2011-08-03 17:23:44 -0700 | |
| commit | ec46b4e1ca89d7c3a9ad70ded58da08b5e19f08f (patch) | |
| tree | c7c9577687a4ce4ec5949f25d029df392b747c8b /libs/gui/SurfaceTexture.cpp | |
| parent | b923066deeffbbaad14a117bd56259bd6ee20a08 (diff) | |
Add a 'release' method to the SurfaceTexture public Java API
Bug: 5063618
Change-Id: I689cb0c01c14e597ccfb4eb0972e64fa570bd4e8
Diffstat (limited to 'libs/gui/SurfaceTexture.cpp')
| -rw-r--r-- | libs/gui/SurfaceTexture.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/gui/SurfaceTexture.cpp b/libs/gui/SurfaceTexture.cpp index 4f51f03ddf3f..1a036ee57cd2 100644 --- a/libs/gui/SurfaceTexture.cpp +++ b/libs/gui/SurfaceTexture.cpp @@ -910,6 +910,7 @@ void SurfaceTexture::abandon() { Mutex::Autolock lock(mMutex); freeAllBuffers(); mAbandoned = true; + mCurrentTextureBuf.clear(); mDequeueCondition.signal(); } |