Merge \"Header changes for getFrameTimestamps\" into nyc-mr1-dev
am: 0398ec6326
Change-Id: I8d1ba8321d60407ed4eca6a50554707ceaefd3ce
This commit is contained in:
commit
9cf6a9ef13
1 changed files with 13 additions and 0 deletions
|
@ -314,6 +314,7 @@ enum {
|
|||
NATIVE_WINDOW_SET_SURFACE_DAMAGE = 20, /* private */
|
||||
NATIVE_WINDOW_SET_SHARED_BUFFER_MODE = 21,
|
||||
NATIVE_WINDOW_SET_AUTO_REFRESH = 22,
|
||||
NATIVE_WINDOW_GET_FRAME_TIMESTAMPS = 23,
|
||||
};
|
||||
|
||||
/* parameter for NATIVE_WINDOW_[API_][DIS]CONNECT */
|
||||
|
@ -976,6 +977,18 @@ static inline int native_window_set_auto_refresh(
|
|||
return window->perform(window, NATIVE_WINDOW_SET_AUTO_REFRESH, autoRefresh);
|
||||
}
|
||||
|
||||
static inline int native_window_get_frame_timestamps(
|
||||
struct ANativeWindow* window, uint32_t framesAgo,
|
||||
int64_t* outPostedTime, int64_t* outAcquireTime,
|
||||
int64_t* outRefreshStartTime, int64_t* outGlCompositionDoneTime,
|
||||
int64_t* outDisplayRetireTime, int64_t* outReleaseTime)
|
||||
{
|
||||
return window->perform(window, NATIVE_WINDOW_GET_FRAME_TIMESTAMPS,
|
||||
framesAgo, outPostedTime, outAcquireTime, outRefreshStartTime,
|
||||
outGlCompositionDoneTime, outDisplayRetireTime, outReleaseTime);
|
||||
}
|
||||
|
||||
|
||||
__END_DECLS
|
||||
|
||||
#endif /* SYSTEM_CORE_INCLUDE_ANDROID_WINDOW_H */
|
||||
|
|
Loading…
Reference in a new issue