diff options
author | 2024-09-16 15:04:44 +0000 | |
---|---|---|
committer | 2024-09-16 15:04:44 +0000 | |
commit | ce73b49f8c377cb738157182ede5f2bc62a07b90 (patch) | |
tree | c6395a1a3cc465e2ba5fe5961a40d2f6e86b6c23 /services/surfaceflinger/TransactionCallbackInvoker.cpp | |
parent | b1d95d630073a3f7bddb44eb2e292d1f47c46cee (diff) | |
parent | 3118f969f488b738de1976917a0944705c209173 (diff) |
Merge "Add some tracing for release fences" into main
Diffstat (limited to 'services/surfaceflinger/TransactionCallbackInvoker.cpp')
-rw-r--r-- | services/surfaceflinger/TransactionCallbackInvoker.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/services/surfaceflinger/TransactionCallbackInvoker.cpp b/services/surfaceflinger/TransactionCallbackInvoker.cpp index c6856aea75..2b20648e42 100644 --- a/services/surfaceflinger/TransactionCallbackInvoker.cpp +++ b/services/surfaceflinger/TransactionCallbackInvoker.cpp @@ -30,6 +30,7 @@ #include <binder/IInterface.h> #include <common/FlagManager.h> #include <common/trace.h> +#include <ftl/concat.h> #include <utils/RefBase.h> namespace android { @@ -129,6 +130,9 @@ status_t TransactionCallbackInvoker::addCallbackHandle(const sp<CallbackHandle>& if (FlagManager::getInstance().ce_fence_promise()) { for (auto& future : handle->previousReleaseFences) { + SFTRACE_NAME(ftl::Concat("Merging fence for layer: ", + ftl::truncated<20>(handle->name.c_str())) + .c_str()); mergeFence(handle->name.c_str(), future.get().value_or(Fence::NO_FENCE), prevFence); } } else { |