diff options
author | Jesse Hall <jessehall@google.com> | 2013-03-20 11:37:21 -0700 |
---|---|---|
committer | Jesse Hall <jessehall@google.com> | 2013-03-22 09:56:58 -0700 |
commit | 13f01cbdbd34779a234bc674df79e23672fd5c0b (patch) | |
tree | 9b1c9334f276ff039a2621fe0e639ff06249473c /include/gui | |
parent | 8d8c75976171d194ca8f94727b22e3bf7676b9dd (diff) | |
download | frameworks_native-13f01cbdbd34779a234bc674df79e23672fd5c0b.zip frameworks_native-13f01cbdbd34779a234bc674df79e23672fd5c0b.tar.gz frameworks_native-13f01cbdbd34779a234bc674df79e23672fd5c0b.tar.bz2 |
Pass sp<Fence>s around instead of file descriptors
Change-Id: Iac70584a2207940730e8f803a543e4e9a4000c47
Diffstat (limited to 'include/gui')
-rw-r--r-- | include/gui/GLConsumer.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/include/gui/GLConsumer.h b/include/gui/GLConsumer.h index e0fa893..b1622d2 100644 --- a/include/gui/GLConsumer.h +++ b/include/gui/GLConsumer.h @@ -98,13 +98,12 @@ public: // This calls doGLFenceWait to ensure proper synchronization. status_t updateTexImage(); - // setReleaseFence stores a fence file descriptor that will signal when the - // current buffer is no longer being read. This fence will be returned to - // the producer when the current buffer is released by updateTexImage(). - // Multiple fences can be set for a given buffer; they will be merged into - // a single union fence. The GLConsumer will close the file descriptor - // when finished with it. - void setReleaseFence(int fenceFd); + // setReleaseFence stores a fence that will signal when the current buffer + // is no longer being read. This fence will be returned to the producer + // when the current buffer is released by updateTexImage(). Multiple + // fences can be set for a given buffer; they will be merged into a single + // union fence. + void setReleaseFence(const sp<Fence>& fence); // setDefaultMaxBufferCount sets the default limit on the maximum number // of buffers that will be allocated at one time. The image producer may |