summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDan Stoza <stoza@google.com>2015-02-25 16:49:08 -0800
committerDan Stoza <stoza@google.com>2015-04-28 14:26:05 -0700
commit81cde67a5528af6fbb7a3d49930fd3ca8ff49b34 (patch)
treebbb270d49d9fd5de3dc48b4c0e0e49a384033023 /include
parent958f501189a29e53767f41bc8172e4af8d1ce2bf (diff)
downloadframeworks_native-81cde67a5528af6fbb7a3d49930fd3ca8ff49b34.zip
frameworks_native-81cde67a5528af6fbb7a3d49930fd3ca8ff49b34.tar.gz
frameworks_native-81cde67a5528af6fbb7a3d49930fd3ca8ff49b34.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
Diffstat (limited to 'include')
-rw-r--r--include/gui/BufferQueueCore.h4
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