Lines Matching refs:layerProto

79         const perfetto::protos::LayerProto& layerProto) {  in generateLayer()  argument
81 layer.id = layerProto.id(); in generateLayer()
82 layer.name = layerProto.name(); in generateLayer()
83 layer.type = layerProto.type(); in generateLayer()
84 layer.transparentRegion = generateRegion(layerProto.transparent_region()); in generateLayer()
85 layer.visibleRegion = generateRegion(layerProto.visible_region()); in generateLayer()
86 layer.damageRegion = generateRegion(layerProto.damage_region()); in generateLayer()
87 layer.layerStack = layerProto.layer_stack(); in generateLayer()
88 layer.z = layerProto.z(); in generateLayer()
89 layer.position = {layerProto.position().x(), layerProto.position().y()}; in generateLayer()
90 layer.requestedPosition = {layerProto.requested_position().x(), in generateLayer()
91 layerProto.requested_position().y()}; in generateLayer()
92 layer.size = {layerProto.size().w(), layerProto.size().h()}; in generateLayer()
93 layer.crop = generateRect(layerProto.crop()); in generateLayer()
94 layer.isOpaque = layerProto.is_opaque(); in generateLayer()
95 layer.invalidate = layerProto.invalidate(); in generateLayer()
96 layer.dataspace = layerProto.dataspace(); in generateLayer()
97 layer.pixelFormat = layerProto.pixel_format(); in generateLayer()
98 layer.color = {layerProto.color().r(), layerProto.color().g(), layerProto.color().b(), in generateLayer()
99 layerProto.color().a()}; in generateLayer()
100 layer.requestedColor = {layerProto.requested_color().r(), layerProto.requested_color().g(), in generateLayer()
101 layerProto.requested_color().b(), layerProto.requested_color().a()}; in generateLayer()
102 layer.flags = layerProto.flags(); in generateLayer()
103 layer.transform = generateTransform(layerProto.transform()); in generateLayer()
104 layer.requestedTransform = generateTransform(layerProto.requested_transform()); in generateLayer()
105 layer.activeBuffer = generateActiveBuffer(layerProto.active_buffer()); in generateLayer()
106 layer.bufferTransform = generateTransform(layerProto.buffer_transform()); in generateLayer()
107 layer.queuedFrames = layerProto.queued_frames(); in generateLayer()
108 layer.refreshPending = layerProto.refresh_pending(); in generateLayer()
109 layer.isProtected = layerProto.is_protected(); in generateLayer()
110 layer.isTrustedOverlay = layerProto.is_trusted_overlay(); in generateLayer()
111 layer.cornerRadius = layerProto.corner_radius(); in generateLayer()
112 layer.backgroundBlurRadius = layerProto.background_blur_radius(); in generateLayer()
113 for (const auto& entry : layerProto.metadata()) { in generateLayer()
119 layer.cornerRadiusCrop = generateFloatRect(layerProto.corner_radius_crop()); in generateLayer()
120 layer.shadowRadius = layerProto.shadow_radius(); in generateLayer()
121 layer.ownerUid = layerProto.owner_uid(); in generateLayer()
180 void LayerProtoParser::updateChildrenAndRelative(const perfetto::protos::LayerProto& layerProto, in updateChildrenAndRelative() argument
182 auto currLayer = layerMap[layerProto.id()]; in updateChildrenAndRelative()
184 for (int i = 0; i < layerProto.children_size(); i++) { in updateChildrenAndRelative()
185 if (layerMap.count(layerProto.children(i)) > 0) { in updateChildrenAndRelative()
186 currLayer->children.push_back(layerMap[layerProto.children(i)]); in updateChildrenAndRelative()
190 for (int i = 0; i < layerProto.relatives_size(); i++) { in updateChildrenAndRelative()
191 if (layerMap.count(layerProto.relatives(i)) > 0) { in updateChildrenAndRelative()
192 currLayer->relatives.push_back(layerMap[layerProto.relatives(i)]); in updateChildrenAndRelative()
196 if (layerProto.has_parent()) { in updateChildrenAndRelative()
197 if (layerMap.count(layerProto.parent()) > 0) { in updateChildrenAndRelative()
198 currLayer->parent = layerMap[layerProto.parent()]; in updateChildrenAndRelative()
202 if (layerProto.has_z_order_relative_of()) { in updateChildrenAndRelative()
203 if (layerMap.count(layerProto.z_order_relative_of()) > 0) { in updateChildrenAndRelative()
204 currLayer->zOrderRelativeOf = layerMap[layerProto.z_order_relative_of()]; in updateChildrenAndRelative()