summaryrefslogtreecommitdiff
path: root/services/surfaceflinger/TransactionCallbackInvoker.cpp
diff options
context:
space:
mode:
author Priyanka Advani (xWF) <padvani@google.com> 2024-08-28 20:50:11 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2024-08-28 20:50:11 +0000
commit8af62f245bfc575a00f08db450067d172ef7c825 (patch)
tree8944a9b96ac22c5c5344c2a6eb0f052936c10550 /services/surfaceflinger/TransactionCallbackInvoker.cpp
parent5ab65e9ef047bc802885396f0e1d960901e86a5c (diff)
Revert "Read from BufferReleaseChannel in background thread"
This reverts commit 5ab65e9ef047bc802885396f0e1d960901e86a5c. Reason for revert: Droidmonitor created revert due to b/362800004. Will be verifying through ABTD before submission. Change-Id: I440606b3da7f4d4c85f5900ac9b9e6fb18ccd8fa
Diffstat (limited to 'services/surfaceflinger/TransactionCallbackInvoker.cpp')
-rw-r--r--services/surfaceflinger/TransactionCallbackInvoker.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/services/surfaceflinger/TransactionCallbackInvoker.cpp b/services/surfaceflinger/TransactionCallbackInvoker.cpp
index c6856aea75..881bf35b58 100644
--- a/services/surfaceflinger/TransactionCallbackInvoker.cpp
+++ b/services/surfaceflinger/TransactionCallbackInvoker.cpp
@@ -149,13 +149,6 @@ status_t TransactionCallbackInvoker::addCallbackHandle(const sp<CallbackHandle>&
handle->transformHint,
handle->currentMaxAcquiredBufferCount,
eventStats, handle->previousReleaseCallbackId);
- if (handle->bufferReleaseChannel &&
- handle->previousReleaseCallbackId != ReleaseCallbackId::INVALID_ID) {
- mBufferReleases.emplace_back(handle->bufferReleaseChannel,
- handle->previousReleaseCallbackId,
- handle->previousReleaseFence,
- handle->currentMaxAcquiredBufferCount);
- }
}
return NO_ERROR;
}
@@ -165,12 +158,6 @@ void TransactionCallbackInvoker::addPresentFence(sp<Fence> presentFence) {
}
void TransactionCallbackInvoker::sendCallbacks(bool onCommitOnly) {
- for (const auto& bufferRelease : mBufferReleases) {
- bufferRelease.channel->writeReleaseFence(bufferRelease.callbackId, bufferRelease.fence,
- bufferRelease.currentMaxAcquiredBufferCount);
- }
- mBufferReleases.clear();
-
// For each listener
auto completedTransactionsItr = mCompletedTransactions.begin();
ftl::SmallVector<ListenerStats, 10> listenerStatsToSend;