diff options
author | Dan Stoza <stoza@google.com> | 2015-02-25 16:49:08 -0800 |
---|---|---|
committer | Dan Stoza <stoza@google.com> | 2015-04-28 13:46:49 -0700 |
commit | 4afd8b67f9be307e6c6ed89deab2e85516bb3a0e (patch) | |
tree | 6860130bf61013feb07649a65c1a2e504aa7c9ee /include | |
parent | 80640fca047bb5f4e792cd87138e24586a3a37c4 (diff) | |
download | frameworks_native-4afd8b67f9be307e6c6ed89deab2e85516bb3a0e.zip frameworks_native-4afd8b67f9be307e6c6ed89deab2e85516bb3a0e.tar.gz frameworks_native-4afd8b67f9be307e6c6ed89deab2e85516bb3a0e.tar.bz2 |
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
(cherry picked from commit 49f810c72df8d1d64128e376757079825c8decd4)
Diffstat (limited to 'include')
-rw-r--r-- | include/gui/BufferQueueCore.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 |