From 871d635736f502e67e6b41a162d4c77826cf6523 Mon Sep 17 00:00:00 2001 From: Valerie Hau Date: Wed, 29 Jan 2020 08:44:02 -0800 Subject: Plumb FrameEventHistory to client Bug: 141939081 Test: build, boot, libgui_test, SurfaceFlinger_test Change-Id: I7294c5357bc28cf0336eef583264c5d0544ec7d4 --- services/surfaceflinger/TransactionCompletedThread.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'services/surfaceflinger/TransactionCompletedThread.cpp') 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& // destroyed the client side is dead and there won't be anyone to send the callback to. sp 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; } -- cgit v1.2.3-59-g8ed1b