diff options
author | Pablo Ceballos | 2016-05-31 13:06:03 -0500 |
---|---|---|
committer | Pablo Ceballos | 2016-06-03 22:36:40 -0500 |
commit | c2efc32a0f1ed3a7282a25549d216e854f5186c4 (patch) | |
tree | 26ef1780f81483e3a83d90dfbead34e8332739dd /include/system | |
parent | e780adf0fea32e0b99fbf0078f5fcf23b20e73b3 (diff) | |
download | platform-system-core-c2efc32a0f1ed3a7282a25549d216e854f5186c4.tar.gz platform-system-core-c2efc32a0f1ed3a7282a25549d216e854f5186c4.tar.xz platform-system-core-c2efc32a0f1ed3a7282a25549d216e854f5186c4.zip |
Header changes for getFrameTimestamps
Change-Id: Iee9e0485544fac435e800ea869a8e4c2ed90bba9
Diffstat (limited to 'include/system')
-rw-r--r-- | include/system/window.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/system/window.h b/include/system/window.h index b8f33ffd4..44bfc9be2 100644 --- a/include/system/window.h +++ b/include/system/window.h | |||
@@ -314,6 +314,7 @@ enum { | |||
314 | NATIVE_WINDOW_SET_SURFACE_DAMAGE = 20, /* private */ | 314 | NATIVE_WINDOW_SET_SURFACE_DAMAGE = 20, /* private */ |
315 | NATIVE_WINDOW_SET_SHARED_BUFFER_MODE = 21, | 315 | NATIVE_WINDOW_SET_SHARED_BUFFER_MODE = 21, |
316 | NATIVE_WINDOW_SET_AUTO_REFRESH = 22, | 316 | NATIVE_WINDOW_SET_AUTO_REFRESH = 22, |
317 | NATIVE_WINDOW_GET_FRAME_TIMESTAMPS = 23, | ||
317 | }; | 318 | }; |
318 | 319 | ||
319 | /* parameter for NATIVE_WINDOW_[API_][DIS]CONNECT */ | 320 | /* parameter for NATIVE_WINDOW_[API_][DIS]CONNECT */ |
@@ -976,6 +977,18 @@ static inline int native_window_set_auto_refresh( | |||
976 | return window->perform(window, NATIVE_WINDOW_SET_AUTO_REFRESH, autoRefresh); | 977 | return window->perform(window, NATIVE_WINDOW_SET_AUTO_REFRESH, autoRefresh); |
977 | } | 978 | } |
978 | 979 | ||
980 | static inline int native_window_get_frame_timestamps( | ||
981 | struct ANativeWindow* window, uint32_t framesAgo, | ||
982 | int64_t* outPostedTime, int64_t* outAcquireTime, | ||
983 | int64_t* outRefreshStartTime, int64_t* outGlCompositionDoneTime, | ||
984 | int64_t* outDisplayRetireTime, int64_t* outReleaseTime) | ||
985 | { | ||
986 | return window->perform(window, NATIVE_WINDOW_GET_FRAME_TIMESTAMPS, | ||
987 | framesAgo, outPostedTime, outAcquireTime, outRefreshStartTime, | ||
988 | outGlCompositionDoneTime, outDisplayRetireTime, outReleaseTime); | ||
989 | } | ||
990 | |||
991 | |||
979 | __END_DECLS | 992 | __END_DECLS |
980 | 993 | ||
981 | #endif /* SYSTEM_CORE_INCLUDE_ANDROID_WINDOW_H */ | 994 | #endif /* SYSTEM_CORE_INCLUDE_ANDROID_WINDOW_H */ |