summaryrefslogtreecommitdiffstats
path: root/include/gui
diff options
context:
space:
mode:
authorJesse Hall <jessehall@google.com>2013-03-20 11:37:21 -0700
committerJesse Hall <jessehall@google.com>2013-03-22 09:56:58 -0700
commit13f01cbdbd34779a234bc674df79e23672fd5c0b (patch)
tree9b1c9334f276ff039a2621fe0e639ff06249473c /include/gui
parent8d8c75976171d194ca8f94727b22e3bf7676b9dd (diff)
downloadframeworks_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.h13
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