summaryrefslogtreecommitdiff
path: root/services/surfaceflinger/TransactionCompletedThread.cpp
diff options
context:
space:
mode:
author Valerie Hau <vhau@google.com> 2020-01-29 08:44:02 -0800
committer Valerie Hau <vhau@google.com> 2020-02-05 15:21:11 -0800
commit871d635736f502e67e6b41a162d4c77826cf6523 (patch)
tree3fafeaf37ac3f73dcbf95f8526817db5bbd16ec2 /services/surfaceflinger/TransactionCompletedThread.cpp
parentb1f1a5d40c363d57ef0579087bd8bbd4c7a4b0cb (diff)
Plumb FrameEventHistory to client
Bug: 141939081 Test: build, boot, libgui_test, SurfaceFlinger_test Change-Id: I7294c5357bc28cf0336eef583264c5d0544ec7d4
Diffstat (limited to 'services/surfaceflinger/TransactionCompletedThread.cpp')
-rw-r--r--services/surfaceflinger/TransactionCompletedThread.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/services/surfaceflinger/TransactionCompletedThread.cpp b/services/surfaceflinger/TransactionCompletedThread.cpp
index daa67ae043..0cdff8f380 100644
--- a/services/surfaceflinger/TransactionCompletedThread.cpp
+++ b/services/surfaceflinger/TransactionCompletedThread.cpp
@@ -237,9 +237,13 @@ status_t TransactionCompletedThread::addCallbackHandle(const sp<CallbackHandle>&
// destroyed the client side is dead and there won't be anyone to send the callback to.
sp<IBinder> surfaceControl = handle->surfaceControl.promote();
if (surfaceControl) {
+ FrameEventHistoryStats eventStats(handle->frameNumber,
+ handle->gpuCompositionDoneFence->getSnapshot().fence,
+ handle->compositorTiming, handle->refreshStartTime,
+ handle->dequeueReadyTime);
transactionStats->surfaceStats.emplace_back(surfaceControl, handle->acquireTime,
handle->previousReleaseFence,
- handle->transformHint);
+ handle->transformHint, eventStats);
}
return NO_ERROR;
}