summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2011-04-15 18:15:13 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-04-15 18:15:13 -0700
commit644c4f186259cd26a2fb1e5be3ce32d891adc7af (patch)
tree465571d42648f723fb1d857c8d8b0c249a1d6650 /include
parent19e4be42616c7a337229a9a17dc982374dec8980 (diff)
parent5f05f99aaedaba18c426fac287bcb18d56dbe881 (diff)
downloadframeworks_base-644c4f186259cd26a2fb1e5be3ce32d891adc7af.zip
frameworks_base-644c4f186259cd26a2fb1e5be3ce32d891adc7af.tar.gz
frameworks_base-644c4f186259cd26a2fb1e5be3ce32d891adc7af.tar.bz2
Merge "Fix a GraphicBuffer leak in SurfaceTexture"
Diffstat (limited to 'include')
-rw-r--r--include/gui/SurfaceTexture.h6
-rw-r--r--include/surfaceflinger/IGraphicBufferAlloc.h10
2 files changed, 1 insertions, 15 deletions
diff --git a/include/gui/SurfaceTexture.h b/include/gui/SurfaceTexture.h
index 585d288..340daaf 100644
--- a/include/gui/SurfaceTexture.h
+++ b/include/gui/SurfaceTexture.h
@@ -248,12 +248,6 @@ private:
// allocate new GraphicBuffer objects.
sp<IGraphicBufferAlloc> mGraphicBufferAlloc;
- // mAllocdBuffers is mirror of the list of buffers that SurfaceFlinger is
- // referencing. This is kept so that gralloc implementations do not need to
- // properly handle the case where SurfaceFlinger no longer holds a reference
- // to a buffer, but other processes do.
- Vector<sp<GraphicBuffer> > mAllocdBuffers;
-
// mFrameAvailableListener is the listener object that will be called when a
// new frame becomes available. If it is not NULL it will be called from
// queueBuffer.
diff --git a/include/surfaceflinger/IGraphicBufferAlloc.h b/include/surfaceflinger/IGraphicBufferAlloc.h
index d996af7..01e4bd9 100644
--- a/include/surfaceflinger/IGraphicBufferAlloc.h
+++ b/include/surfaceflinger/IGraphicBufferAlloc.h
@@ -32,18 +32,10 @@ class IGraphicBufferAlloc : public IInterface
public:
DECLARE_META_INTERFACE(GraphicBufferAlloc);
- /* Create a new GraphicBuffer for the client to use. The server will
- * maintain a reference to the newly created GraphicBuffer until
- * freeAllGraphicBuffers is called.
+ /* Create a new GraphicBuffer for the client to use.
*/
virtual sp<GraphicBuffer> createGraphicBuffer(uint32_t w, uint32_t h,
PixelFormat format, uint32_t usage) = 0;
-
- /* Free all but one of the GraphicBuffer objects that the server is
- * currently referencing. If bufIndex is not a valid index of the buffers
- * the server is referencing, then all buffers are freed.
- */
- virtual void freeAllGraphicBuffersExcept(int bufIndex) = 0;
};
// ----------------------------------------------------------------------------