Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7052581f authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "blast: ordering layer death and callbacks"

parents 5938c94c 88e20481
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -3933,6 +3933,11 @@ uint32_t SurfaceFlinger::setClientStateLocked(

    sp<Layer> layer(client->getLayerUser(s.surface));
    if (layer == nullptr) {
        for (auto& listenerCallback : listenerCallbacks) {
            mTransactionCompletedThread.addUnpresentedCallbackHandle(
                    new CallbackHandle(listenerCallback.transactionCompletedListener,
                                       listenerCallback.callbackIds, s.surface));
        }
        return 0;
    }