From 9febda8e05bbd924d14682454fdc7a846c38f954 Mon Sep 17 00:00:00 2001 From: Adithya Srinivasan Date: Mon, 19 Oct 2020 10:49:41 -0700 Subject: Plumb owner pid into Layer For shared timeline visualization, the pid of the process owning the layer is needed to show the information in the respective process tracks. This change stores the newly added METADATA_OWNER_PID information sent as a part of the Layer creation args Bug: 170911969 Test: pid section of `adb shell dumpsys SurfaceFlinger --frametimeline -` Change-Id: Ib1cd9b6239501b0b92283dca19d7de3916fff604 --- libs/gui/LayerMetadata.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libs/gui/LayerMetadata.cpp') diff --git a/libs/gui/LayerMetadata.cpp b/libs/gui/LayerMetadata.cpp index b3eb9940b2..30c9b373ef 100644 --- a/libs/gui/LayerMetadata.cpp +++ b/libs/gui/LayerMetadata.cpp @@ -122,6 +122,8 @@ std::string LayerMetadata::itemToString(uint32_t key, const char* separator) con return StringPrintf("windowType%s%d", separator, getInt32(key, 0)); case view::LayerMetadataKey::METADATA_TASK_ID: return StringPrintf("taskId%s%d", separator, getInt32(key, 0)); + case view::LayerMetadataKey::METADATA_OWNER_PID: + return StringPrintf("ownerPID%s%d", separator, getInt32(key, 0)); default: return StringPrintf("%d%s%dbytes", key, separator, static_cast(mMap.at(key).size())); -- cgit v1.2.3-59-g8ed1b