diff options
author | Jamie Gennis <jgennis@google.com> | 2011-07-19 14:32:36 -0700 |
---|---|---|
committer | Jamie Gennis <jgennis@google.com> | 2011-07-21 14:32:56 -0700 |
commit | 5c23a2c72d1c3d2c423355ae301e0822e1662b9f (patch) | |
tree | 401a131a26ad11e7fdc9b91cfbaf699675c4b481 /include | |
parent | d7a374f6f8f52a88d7e9a4660d9bf9037cf0b659 (diff) | |
download | frameworks_base-5c23a2c72d1c3d2c423355ae301e0822e1662b9f.zip frameworks_base-5c23a2c72d1c3d2c423355ae301e0822e1662b9f.tar.gz frameworks_base-5c23a2c72d1c3d2c423355ae301e0822e1662b9f.tar.bz2 |
SurfaceTexture: remove getAllocator
This change removes the SurfaceTexture::getAllocator method, as it's no
longer needed. Proper refcounting of the Gralloc buffers is now handled
by the IGraphicBufferAlloc binder marshalling code.
Change-Id: I5cffa6ebfc1bc5828fb7ce0e0a5b2f55cd8479da
Diffstat (limited to 'include')
-rw-r--r-- | include/gui/ISurfaceTexture.h | 6 | ||||
-rw-r--r-- | include/gui/SurfaceTextureClient.h | 4 |
2 files changed, 0 insertions, 10 deletions
diff --git a/include/gui/ISurfaceTexture.h b/include/gui/ISurfaceTexture.h index bc630ae..405a25a 100644 --- a/include/gui/ISurfaceTexture.h +++ b/include/gui/ISurfaceTexture.h @@ -94,12 +94,6 @@ protected: virtual status_t setTransform(uint32_t transform) = 0; virtual status_t setScalingMode(int mode) = 0; - // getAllocator retrieves the binder object that must be referenced as long - // as the GraphicBuffers dequeued from this ISurfaceTexture are referenced. - // Holding this binder reference prevents SurfaceFlinger from freeing the - // buffers before the client is done with them. - virtual sp<IBinder> getAllocator() = 0; - // query retrieves some information for this surface // 'what' tokens allowed are that of android_natives.h virtual int query(int what, int* value) = 0; diff --git a/include/gui/SurfaceTextureClient.h b/include/gui/SurfaceTextureClient.h index 829d8ab..56f029f 100644 --- a/include/gui/SurfaceTextureClient.h +++ b/include/gui/SurfaceTextureClient.h @@ -106,10 +106,6 @@ private: // interactions with the server using this interface. sp<ISurfaceTexture> mSurfaceTexture; - // mAllocator is the binder object that is referenced to prevent the - // dequeued buffers from being freed prematurely. - sp<IBinder> mAllocator; - // mSlots stores the buffers that have been allocated for each buffer slot. // It is initialized to null pointers, and gets filled in with the result of // ISurfaceTexture::requestBuffer when the client dequeues a buffer from a |