diff options
author | Dan Stoza <stoza@google.com> | 2016-07-01 14:02:08 -0700 |
---|---|---|
committer | Dan Stoza <stoza@google.com> | 2016-07-01 16:07:00 -0700 |
commit | 94ededa387cf0736953514cf850f50fdb75aeeed (patch) | |
tree | ac88dd6d41e03957fce262f8ef067d9cb3eaa06e /include/system | |
parent | 7f871b4249717cd9baff4bfa2209123649c5044c (diff) | |
download | core-94ededa387cf0736953514cf850f50fdb75aeeed.tar.gz core-94ededa387cf0736953514cf850f50fdb75aeeed.tar.bz2 core-94ededa387cf0736953514cf850f50fdb75aeeed.zip |
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
Diffstat (limited to 'include/system')
-rw-r--r-- | include/system/window.h | 10 |
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. |