summaryrefslogtreecommitdiff
path: root/include/gui/SurfaceTextureClient.h
diff options
context:
space:
mode:
author Jamie Gennis <jgennis@google.com> 2011-02-02 16:21:24 -0800
committer Android Git Automerger <android-git-automerger@android.com> 2011-02-02 16:21:24 -0800
commita257be1895218e5c3e153313db9dd703fd9cc84f (patch)
tree457726588b7e414388795ed24f1c38a67dc96dd6 /include/gui/SurfaceTextureClient.h
parent9d3fb3717f2acec71a3330e448ecf63ee997b1f8 (diff)
parent421d94c20321e1de528416b279bf148baba47b39 (diff)
am 421d94c2: am ecb4b3f0: Merge "Pass the IGraphicBufferAlloc to SurfaceTextureClient." into honeycomb
* commit '421d94c20321e1de528416b279bf148baba47b39': Pass the IGraphicBufferAlloc to SurfaceTextureClient.
Diffstat (limited to 'include/gui/SurfaceTextureClient.h')
-rw-r--r--include/gui/SurfaceTextureClient.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/gui/SurfaceTextureClient.h b/include/gui/SurfaceTextureClient.h
index dd1d490aebb9..ff2251d893a8 100644
--- a/include/gui/SurfaceTextureClient.h
+++ b/include/gui/SurfaceTextureClient.h
@@ -83,6 +83,10 @@ 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