diff options
author | 2020-10-19 10:49:41 -0700 | |
---|---|---|
committer | 2020-11-02 18:32:24 -0800 | |
commit | 9febda8e05bbd924d14682454fdc7a846c38f954 (patch) | |
tree | f3db8c2be3e1d716aa236244cc2f62a7b7392b26 /libs/gui/LayerMetadata.cpp | |
parent | 854e1b9538adf3aac0f1ce012a2d3b532880f4ca (diff) |
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 -<all/jank>`
Change-Id: Ib1cd9b6239501b0b92283dca19d7de3916fff604
Diffstat (limited to 'libs/gui/LayerMetadata.cpp')
-rw-r--r-- | libs/gui/LayerMetadata.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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<int>(mMap.at(key).size())); |