From 13f01cbdbd34779a234bc674df79e23672fd5c0b Mon Sep 17 00:00:00 2001 From: Jesse Hall Date: Wed, 20 Mar 2013 11:37:21 -0700 Subject: Pass sps around instead of file descriptors Change-Id: Iac70584a2207940730e8f803a543e4e9a4000c47 --- include/gui/GLConsumer.h | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'include/gui') 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); // setDefaultMaxBufferCount sets the default limit on the maximum number // of buffers that will be allocated at one time. The image producer may -- cgit v1.1