diff options
author | Mathias Agopian <mathias@google.com> | 2011-08-08 19:14:57 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2011-08-08 20:25:45 -0700 |
commit | 43a3d91dff059034d699c9612dab68b8d9cdf556 (patch) | |
tree | 66769f77c34a000bd9f4073046612fa42b335bf9 /libs | |
parent | 053b02df2d350466a2226a90709e50fedef54747 (diff) | |
download | frameworks_base-43a3d91dff059034d699c9612dab68b8d9cdf556.zip frameworks_base-43a3d91dff059034d699c9612dab68b8d9cdf556.tar.gz frameworks_base-43a3d91dff059034d699c9612dab68b8d9cdf556.tar.bz2 |
free all buffers when ANativeWindow::disconnect is called
Change-Id: Ie06e73e5b44398cda9e99876f78175b5eef765dc
Diffstat (limited to 'libs')
-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 02b851c..eb50994 100644 --- a/libs/gui/SurfaceTexture.cpp +++ b/libs/gui/SurfaceTexture.cpp @@ -599,6 +599,7 @@ status_t SurfaceTexture::disconnect(int api) { case NATIVE_WINDOW_API_CAMERA: if (mConnectedApi == api) { mConnectedApi = NO_CONNECTED_API; + freeAllBuffers(); } else { LOGE("disconnect: connected to another api (cur=%d, req=%d)", mConnectedApi, api); |