Plumb refresh cycle duration up to VK_GOOGLE_display_timing.
Test: Manually tested with a modified cube demo, that reports the refresh
duration returned from this extension.
Change-Id: Ib9499429119e910585a4ee9341c3a2d86a3bdae0
diff --git a/include/gui/Surface.h b/include/gui/Surface.h
index 0b6a8f7..4be11b4 100644
--- a/include/gui/Surface.h
+++ b/include/gui/Surface.h
@@ -151,6 +151,9 @@
nsecs_t* outDisplayPresentTime, nsecs_t* outDisplayRetireTime,
nsecs_t* outDequeueReadyTime, nsecs_t* outReleaseTime);
+ status_t getDisplayRefreshCyclePeriod(nsecs_t* outMinRefreshDuration,
+ nsecs_t* outMaxRefreshDuration);
+
status_t getUniqueId(uint64_t* outId) const;
protected:
@@ -207,6 +210,7 @@
int dispatchSetAutoRefresh(va_list args);
int dispatchEnableFrameTimestamps(va_list args);
int dispatchGetFrameTimestamps(va_list args);
+ int dispatchGetDisplayRefreshCyclePeriod(va_list args);
protected:
virtual int dequeueBuffer(ANativeWindowBuffer** buffer, int* fenceFd);