summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> 2024-03-14 20:36:03 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2024-03-14 20:36:03 +0000
commit2502a0b1fc06120b64efc385bddde1dcb0abff37 (patch)
tree1f3ff8ad9b50e60b5674a277d6fe68e49ee728b4
parent10f539294cbd8df95ef1b54af0869b497e9c0c59 (diff)
parentfed621c61161890fe7c21c7204f6fe2a957bb013 (diff)
Merge "Deprecate ASurfaceTransactionStats_getAcquireTime" into main
-rw-r--r--include/android/surface_control.h4
1 files changed, 4 insertions, 0 deletions
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)