summaryrefslogtreecommitdiff
path: root/services/surfaceflinger/TransactionCallbackInvoker.cpp
diff options
context:
space:
mode:
author Dominik Laskowski <domlaskowski@google.com> 2022-07-12 09:03:39 -0700
committer Dominik Laskowski <domlaskowski@google.com> 2022-08-05 12:11:59 -0700
commit8792c111275d317b8d17124b7167dc713eef106e (patch)
treee35372aa69e6bfe5431e671f9514845a398d04c3 /services/surfaceflinger/TransactionCallbackInvoker.cpp
parent063f82e8f95ad6f1f4e0bbc07ce3fd22c9e1eb15 (diff)
SF: Clean up postComposition
Avoid repetition and sp<> copies for present fences. Query the present time once. Remove DisplayDevice::getPageFlipCount. Bug: 241285191 Test: Build Change-Id: I6371e25a7422183953c0617dc1e17280f36018e4
Diffstat (limited to 'services/surfaceflinger/TransactionCallbackInvoker.cpp')
-rw-r--r--services/surfaceflinger/TransactionCallbackInvoker.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/services/surfaceflinger/TransactionCallbackInvoker.cpp b/services/surfaceflinger/TransactionCallbackInvoker.cpp
index d2c2e29a2f..e5de7591ef 100644
--- a/services/surfaceflinger/TransactionCallbackInvoker.cpp
+++ b/services/surfaceflinger/TransactionCallbackInvoker.cpp
@@ -178,8 +178,8 @@ status_t TransactionCallbackInvoker::addCallbackHandle(const sp<CallbackHandle>&
return NO_ERROR;
}
-void TransactionCallbackInvoker::addPresentFence(const sp<Fence>& presentFence) {
- mPresentFence = presentFence;
+void TransactionCallbackInvoker::addPresentFence(sp<Fence> presentFence) {
+ mPresentFence = std::move(presentFence);
}
void TransactionCallbackInvoker::sendCallbacks(bool onCommitOnly) {