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

Commit 58897beb authored by Vishnu Nair's avatar Vishnu Nair Committed by Automerger Merge Worker
Browse files

Merge "Add handleAlive in logs for child layers for layer leaks." into main am: c710884e

parents 9ba71ca6 c710884e
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -4182,7 +4182,8 @@ status_t SurfaceFlinger::addClientLayer(LayerCreationArgs& args, const sp<IBinde
                    int sampleSize = (layer->getChildrenCount() / 100) + 1;
                    layer->traverseChildren([&](Layer* layer) {
                        if (rand() % sampleSize == 0) {
                            ALOGE("Child Layer: %s", layer->getName().c_str());
                            ALOGE("Child Layer: %s%s", layer->getName().c_str(),
                                  (layer->isHandleAlive() ? "handleAlive" : ""));
                        }
                    });
                }