Show properties for DisplayAreas and DisplayContent

Test: open wm trace in winscope, check if properties of DC and DA are
visible.
Fixes: 149672519
Change-Id: Ib5181c655a84fec94307846333fc0b1cc29d38fc

Change-Id: Ib442c75f031ceb72aa00493e46d502944827121c
This commit is contained in:
Vishnu Nair
2020-03-16 11:00:51 -07:00
parent 259361a4ad
commit 7264ef5848

View File

@@ -145,7 +145,7 @@ function transform_window_container_child(entry) {
// The WindowContainerChild may be unknown
return transform({
obj: {},
obj: entry,
kind: 'WindowContainerChild',
name: '',
children: [[entry.windowContainer.children.reverse(), transform_window_container_child],]
@@ -155,7 +155,7 @@ function transform_window_container_child(entry) {
function transform_display_area(entry) {
return transform({
obj: {},
obj: entry,
kind: 'DisplayArea',
name: entry.name,
children: [
@@ -170,10 +170,8 @@ function transform_display_content(entry) {
height: entry.displayInfo.logicalHeight || 0,
};
// If trace supports display areas
var obj = (entry.rootDisplayArea != null) ? {} : entry;
return transform({
obj: obj,
obj: entry,
kind: 'display',
name: entry.id || 0,
children: [