summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Stoza <stoza@google.com>2016-07-01 14:02:08 -0700
committerDan Stoza <stoza@google.com>2016-07-01 16:07:00 -0700
commit94ededa387cf0736953514cf850f50fdb75aeeed (patch)
treeac88dd6d41e03957fce262f8ef067d9cb3eaa06e
parent7f871b4249717cd9baff4bfa2209123649c5044c (diff)
NativeWindow: Add LAST_[DE]QUEUE_DURATION queries
Adds two new enums to enable querying the duration of the last dequeue or queue operations to a Surface/ANativeWindow. Bug: 29413700 Change-Id: Ifa16755911c4a3c013a7128dd4038d328109c32d
-rw-r--r--include/system/window.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/system/window.h b/include/system/window.h
index 44bfc9be2..33b7c3d77 100644
--- a/include/system/window.h
+++ b/include/system/window.h
@@ -278,6 +278,16 @@ enum {
* age will be 0.
*/
NATIVE_WINDOW_BUFFER_AGE = 13,
+
+ /*
+ * Returns the duration of the last dequeueBuffer call in microseconds
+ */
+ NATIVE_WINDOW_LAST_DEQUEUE_DURATION = 14,
+
+ /*
+ * Returns the duration of the last queueBuffer call in microseconds
+ */
+ NATIVE_WINDOW_LAST_QUEUE_DURATION = 15,
};
/* Valid operations for the (*perform)() hook.