From 81cde67a5528af6fbb7a3d49930fd3ca8ff49b34 Mon Sep 17 00:00:00 2001 From: Dan Stoza Date: Wed, 25 Feb 2015 16:49:08 -0800 Subject: BufferQueue: Add NATIVE_WINDOW_BUFFER_AGE query Adds a NATIVE_WINDOW_BUFFER_AGE query, which returns the age of the contents of the most recently dequeued buffer as the number of frames that have elapsed since it was last queued. Change-Id: Ib6fd62945cb62d1e60133a65beee510363218a23 --- include/gui/BufferQueueCore.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') diff --git a/include/gui/BufferQueueCore.h b/include/gui/BufferQueueCore.h index 9a43516..e3624b7 100644 --- a/include/gui/BufferQueueCore.h +++ b/include/gui/BufferQueueCore.h @@ -270,6 +270,10 @@ private: // mAllowAllocation determines whether dequeueBuffer is allowed to allocate // new buffers bool mAllowAllocation; + + // mBufferAge tracks the age of the contents of the most recently dequeued + // buffer as the number of frames that have elapsed since it was last queued + uint64_t mBufferAge; }; // class BufferQueueCore } // namespace android -- cgit v1.1