From fed621c61161890fe7c21c7204f6fe2a957bb013 Mon Sep 17 00:00:00 2001 From: Chavi Weingarten Date: Thu, 14 Mar 2024 15:46:05 +0000 Subject: Deprecate ASurfaceTransactionStats_getAcquireTime Test: Builds Bug: 203080148 Change-Id: I586339b82e408e0ac90944ab280a2d5b79309141 --- include/android/surface_control.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/android/surface_control.h b/include/android/surface_control.h index 082387e63a..fb1419f0b2 100644 --- a/include/android/surface_control.h +++ b/include/android/surface_control.h @@ -236,6 +236,10 @@ void ASurfaceTransactionStats_releaseASurfaceControls(ASurfaceControl** surface_ * it is acquired. If no acquire_fence_fd was provided, this timestamp will be set to -1. * * Available since API level 29. + * + * @deprecated This may return SIGNAL_PENDING because the stats can arrive before the acquire + * fence has signaled, depending on internal timing differences. Therefore the caller should + * use the acquire fence passed in to setBuffer and query the signal time. */ int64_t ASurfaceTransactionStats_getAcquireTime(ASurfaceTransactionStats* surface_transaction_stats, ASurfaceControl* surface_control) -- cgit v1.2.3-59-g8ed1b