summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Vishnu Nair <vishnun@google.com> 2024-07-15 19:44:20 +0000
committer Vishnu Nair <vishnun@google.com> 2024-07-15 19:45:52 +0000
commitf19c9eb9aec5f046e5ce2f57474764f2a1d14095 (patch)
tree6db280db4bac00f307a3796f9d5d1eeabcbbbf42
parent687f9fea008f01b02284f45c5a582e1b445d3030 (diff)
Fix LayerProtoHelper workaround to track layer ids
Flag: EXEMPT bugfix Bug: 335383156 Test: capture active layers trace Change-Id: I0ba327229112f5cda79359816d14b2d3bf157b3d
-rw-r--r--services/surfaceflinger/LayerProtoHelper.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/services/surfaceflinger/LayerProtoHelper.cpp b/services/surfaceflinger/LayerProtoHelper.cpp
index 30b8eeefba..0d2987c94a 100644
--- a/services/surfaceflinger/LayerProtoHelper.cpp
+++ b/services/surfaceflinger/LayerProtoHelper.cpp
@@ -331,6 +331,7 @@ void LayerProtoFromSnapshotGenerator::writeHierarchyToProto(
TransactionTraceWriter::getInstance().invoke("DuplicateLayer", /* overwrite= */ false);
return;
}
+ mVisitedLayers.insert(snapshot->uniqueSequence);
LayerProtoHelper::writeSnapshotToProto(layerProto, layer, *snapshot, mTraceFlags);
for (const auto& [child, variant] : root.mChildren) {