Return fence to client in dequeuBuffer
Change-Id: Ic19750793ad993f0e85391f3cabd743ba565d4c9
diff --git a/include/ui/Fence.h b/include/ui/Fence.h
index 195f2e9..3d49e6a 100644
--- a/include/ui/Fence.h
+++ b/include/ui/Fence.h
@@ -69,6 +69,11 @@
static sp<Fence> merge(const String8& name, const sp<Fence>& f1,
const sp<Fence>& f2);
+ // Return a duplicate of the fence file descriptor. The caller is
+ // responsible for closing the returned file descriptor. On error, -1 will
+ // be returned and errno will indicate the problem.
+ int dup() const;
+
// Flattenable interface
size_t getFlattenedSize() const;
size_t getFdCount() const;