From 94ededa387cf0736953514cf850f50fdb75aeeed Mon Sep 17 00:00:00 2001 From: Dan Stoza Date: Fri, 1 Jul 2016 14:02:08 -0700 Subject: [PATCH] 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 --- include/system/window.h | 10 ++++++++++ 1 file changed, 10 insertions(+) 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.