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

Commit c710884e authored by Vishnu Nair's avatar Vishnu Nair Committed by Gerrit Code Review
Browse files

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

parents b894c3ed c476a340
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -4192,7 +4192,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" : ""));
                        }
                    });
                }