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

Commit a2b9fab5 authored by chaviw's avatar chaviw
Browse files

Fix bug where layers aren't shown in SurfaceFlinger dump.

The change in ag/15551285 clears the layersProto object when swap is
called. When the layers attempt to dump as a string, the variable is now
empty so nothing is shown.

Fixes: 199307267
Test: adb shell dumpsys SurfaceFlinger
Change-Id: I8c499352ffae086ef1264a6cf0c3df82e7a20977
parent d51ac5e0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4676,7 +4676,7 @@ status_t SurfaceFlinger::doDump(int fd, const DumpArgs& args, bool asProto) {
                result.append(traceFileProto.SerializeAsString());
            } else {
                // Dump info that we need to access from the main thread
                const auto layerTree = LayerProtoParser::generateLayerTree(layersProto);
                const auto layerTree = LayerProtoParser::generateLayerTree(layersTrace->layers());
                result.append(LayerProtoParser::layerTreeToString(layerTree));
                result.append("\n");
                dumpOffscreenLayers(result);