summaryrefslogtreecommitdiff
path: root/services/surfaceflinger/TransactionCallbackInvoker.cpp
diff options
context:
space:
mode:
author Ady Abraham <adyabr@google.com> 2022-01-21 11:11:31 -0800
committer Ady Abraham <adyabr@google.com> 2022-02-09 19:26:09 -0800
commit461296a52224f58ea4ffe7235d744260cb3ad01d (patch)
treeb2cc77da6e3d2dbcbdcb0eb7deb718f7b75d1e77 /services/surfaceflinger/TransactionCallbackInvoker.cpp
parent9dada820366f73c702224aaaddd4e7237e5035b3 (diff)
SF: pass acquire fence on BLAST callbacks
When latching unsignaled buffers, the acquire fence is not signaled by the time BLAST callback is invoked. In that case pass a fence instead. For latch signaled, we still pass the acquire time itself to avoid sending file descriptors over binder. Bug: 198190384 Test: SF unit tests Change-Id: Ic7ad9b603b60dbf46a62eaf6b76bfbdeeebf6cec
Diffstat (limited to 'services/surfaceflinger/TransactionCallbackInvoker.cpp')
-rw-r--r--services/surfaceflinger/TransactionCallbackInvoker.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/surfaceflinger/TransactionCallbackInvoker.cpp b/services/surfaceflinger/TransactionCallbackInvoker.cpp
index b705d9cf7b..e1f348fdba 100644
--- a/services/surfaceflinger/TransactionCallbackInvoker.cpp
+++ b/services/surfaceflinger/TransactionCallbackInvoker.cpp
@@ -167,7 +167,7 @@ status_t TransactionCallbackInvoker::addCallbackHandle(const sp<CallbackHandle>&
handle->gpuCompositionDoneFence->getSnapshot().fence,
handle->compositorTiming, handle->refreshStartTime,
handle->dequeueReadyTime);
- transactionStats->surfaceStats.emplace_back(surfaceControl, handle->acquireTime,
+ transactionStats->surfaceStats.emplace_back(surfaceControl, handle->acquireTimeOrFence,
handle->previousReleaseFence,
handle->transformHint,
handle->currentMaxAcquiredBufferCount,