From 111e26e04aebadd0b6efcd71e1efe3ad4efce1fc Mon Sep 17 00:00:00 2001 From: Wenhui Yang Date: Thu, 3 Oct 2024 05:22:11 +0000 Subject: Add explanation for composition list order when dumping SurfaceFlinger Add explanation to make the composition list order clearer. Bug: 371037070 Test: adb shell dumpsys SurfaceFlinger Flag: EXEMPT bugfix Change-Id: I819c9512b9734a79c6beae1f382ab98447558699 --- services/surfaceflinger/SurfaceFlinger.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/surfaceflinger/SurfaceFlinger.cpp b/services/surfaceflinger/SurfaceFlinger.cpp index 65a0ed3065..16ad564b0e 100644 --- a/services/surfaceflinger/SurfaceFlinger.cpp +++ b/services/surfaceflinger/SurfaceFlinger.cpp @@ -5737,7 +5737,7 @@ void SurfaceFlinger::dumpHdrInfo(std::string& result) const { void SurfaceFlinger::dumpFrontEnd(std::string& result) { std::ostringstream out; - out << "\nComposition list\n"; + out << "\nComposition list (bottom to top)\n"; ui::LayerStack lastPrintedLayerStackHeader = ui::INVALID_LAYER_STACK; for (const auto& snapshot : mLayerSnapshotBuilder.getSnapshots()) { if (lastPrintedLayerStackHeader != snapshot->outputFilter.layerStack) { @@ -5765,7 +5765,7 @@ void SurfaceFlinger::dumpFrontEnd(std::string& result) { void SurfaceFlinger::dumpVisibleFrontEnd(std::string& result) { std::ostringstream out; - out << "\nComposition list\n"; + out << "\nComposition list (bottom to top)\n"; ui::LayerStack lastPrintedLayerStackHeader = ui::INVALID_LAYER_STACK; mLayerSnapshotBuilder.forEachVisibleSnapshot( [&](std::unique_ptr& snapshot) { -- cgit v1.2.3-59-g8ed1b