summaryrefslogtreecommitdiff
path: root/services/surfaceflinger/TransactionCompletedThread.cpp
diff options
context:
space:
mode:
author Valerie Hau <vhau@google.com> 2019-11-22 14:18:09 -0800
committer Valerie Hau <vhau@google.com> 2019-11-25 17:29:09 -0800
commitc5686802261e26e035889f047cf43016d890181f (patch)
tree8a12fc4e93267db1708578a2a47fb11cde4d0d42 /services/surfaceflinger/TransactionCompletedThread.cpp
parentd0d28e3183d55c4a23d87b59681ceac3e3cf133d (diff)
When destroying layer, add children to offscreen layers
If a layer is destroyed, make sure all children are added to the offscreen layers. Otherwise, we may dangle a layer that is neither in current state nor in offscreen layers. Bug: 141111965 Test: build, boot, manual Change-Id: Iec6788f10a24cb63faa9b40f246cbde3770d24a7
Diffstat (limited to 'services/surfaceflinger/TransactionCompletedThread.cpp')
-rw-r--r--services/surfaceflinger/TransactionCompletedThread.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/services/surfaceflinger/TransactionCompletedThread.cpp b/services/surfaceflinger/TransactionCompletedThread.cpp
index c15355d338..8db03db7e8 100644
--- a/services/surfaceflinger/TransactionCompletedThread.cpp
+++ b/services/surfaceflinger/TransactionCompletedThread.cpp
@@ -189,15 +189,6 @@ status_t TransactionCompletedThread::finalizePendingCallbackHandles(
return NO_ERROR;
}
-void TransactionCompletedThread::clearAllPending() {
- std::lock_guard lock(mMutex);
- if (!mRunning) {
- return;
- }
- mPendingTransactions.clear();
- mConditionVariable.notify_all();
-}
-
status_t TransactionCompletedThread::registerUnpresentedCallbackHandle(
const sp<CallbackHandle>& handle) {
std::lock_guard lock(mMutex);