summaryrefslogtreecommitdiff
path: root/services/surfaceflinger/TransactionCallbackInvoker.cpp
diff options
context:
space:
mode:
author Alec Mouri <alecmouri@google.com> 2023-10-17 19:51:39 +0000
committer Alec Mouri <alecmouri@google.com> 2023-11-15 17:26:19 +0000
commit21d94322a3bec4b8f16010b91eb1da564c345da7 (patch)
tree625742e64597343f190533807412dba2fbdeaed9 /services/surfaceflinger/TransactionCallbackInvoker.cpp
parentecbfa07774714ed49884f8424e5d9a92826a8f9c (diff)
Assign previous release fence to previous frame ID
...as otherwise the release timestamps for EGL/Vk timing apis are shifted by one frame. Bug: 295456126 Bug: 301055892 Bug: 303385401 Bug: 310927247 Test: Log and inspect timestamps Change-Id: If1d8a525053591f15b95aeec8dc0bad8a13e6833
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 3587a726cd..6a155c17df 100644
--- a/services/surfaceflinger/TransactionCallbackInvoker.cpp
+++ b/services/surfaceflinger/TransactionCallbackInvoker.cpp
@@ -158,7 +158,7 @@ status_t TransactionCallbackInvoker::addCallbackHandle(const sp<CallbackHandle>&
handle->previousReleaseFence = prevFence;
handle->previousReleaseFences.clear();
- FrameEventHistoryStats eventStats(handle->frameNumber,
+ FrameEventHistoryStats eventStats(handle->frameNumber, handle->previousFrameNumber,
handle->gpuCompositionDoneFence->getSnapshot().fence,
handle->compositorTiming, handle->refreshStartTime,
handle->dequeueReadyTime);