Lines Matching refs:layerInfo

365 void LayerProtoHelper::writeSnapshotToProto(perfetto::protos::LayerProto* layerInfo,  in writeSnapshotToProto()  argument
373 [&]() { return layerInfo->mutable_active_buffer(); }); in writeSnapshotToProto()
375 layerInfo->mutable_buffer_transform()); in writeSnapshotToProto()
377 layerInfo->set_invalidate(snapshot.contentDirty); in writeSnapshotToProto()
378 layerInfo->set_is_protected(snapshot.hasProtectedContent); in writeSnapshotToProto()
379 layerInfo->set_dataspace(dataspaceDetails(static_cast<android_dataspace>(snapshot.dataspace))); in writeSnapshotToProto()
380 layerInfo->set_curr_frame(requestedState.bufferData->frameNumber); in writeSnapshotToProto()
381 layerInfo->set_requested_corner_radius(requestedState.cornerRadius); in writeSnapshotToProto()
382 layerInfo->set_corner_radius( in writeSnapshotToProto()
384 layerInfo->set_background_blur_radius(snapshot.backgroundBlurRadius); in writeSnapshotToProto()
385 layerInfo->set_is_trusted_overlay(snapshot.trustedOverlay == gui::TrustedOverlay::ENABLED); in writeSnapshotToProto()
387 LayerProtoHelper::writeToProtoDeprecated(transform, layerInfo->mutable_transform()); in writeSnapshotToProto()
389 [&]() { return layerInfo->mutable_position(); }); in writeSnapshotToProto()
391 [&]() { return layerInfo->mutable_bounds(); }); in writeSnapshotToProto()
393 [&]() { return layerInfo->mutable_damage_region(); }); in writeSnapshotToProto()
397 layerInfo->mutable_color_transform()); in writeSnapshotToProto()
401 [&]() { return layerInfo->mutable_source_bounds(); }); in writeSnapshotToProto()
403 [&]() { return layerInfo->mutable_screen_bounds(); }); in writeSnapshotToProto()
405 [&]() { return layerInfo->mutable_corner_radius_crop(); }); in writeSnapshotToProto()
406 layerInfo->set_shadow_radius(snapshot.shadowSettings.length); in writeSnapshotToProto()
408 layerInfo->set_id(snapshot.uniqueSequence); in writeSnapshotToProto()
409 layerInfo->set_original_id(snapshot.sequence); in writeSnapshotToProto()
411 layerInfo->set_name(requestedState.name); in writeSnapshotToProto()
413 layerInfo->set_name(requestedState.name + "(Mirror)"); in writeSnapshotToProto()
415 layerInfo->set_type("Layer"); in writeSnapshotToProto()
418 [&]() { return layerInfo->mutable_transparent_region(); }); in writeSnapshotToProto()
420 layerInfo->set_layer_stack(snapshot.outputFilter.layerStack.id); in writeSnapshotToProto()
421 layerInfo->set_z(requestedState.z); in writeSnapshotToProto()
425 return layerInfo->mutable_requested_position(); in writeSnapshotToProto()
429 [&]() { return layerInfo->mutable_crop(); }); in writeSnapshotToProto()
431 layerInfo->set_is_opaque(snapshot.contentOpaque); in writeSnapshotToProto()
433 layerInfo->set_pixel_format( in writeSnapshotToProto()
435 LayerProtoHelper::writeToProto(snapshot.color, [&]() { return layerInfo->mutable_color(); }); in writeSnapshotToProto()
437 [&]() { return layerInfo->mutable_requested_color(); }); in writeSnapshotToProto()
438 layerInfo->set_flags(requestedState.flags); in writeSnapshotToProto()
441 layerInfo->mutable_requested_transform()); in writeSnapshotToProto()
443 layerInfo->set_is_relative_of(requestedState.isRelativeOf); in writeSnapshotToProto()
445 layerInfo->set_owner_uid(requestedState.ownerUid.val()); in writeSnapshotToProto()
449 [&]() { return layerInfo->mutable_input_window_info(); }); in writeSnapshotToProto()
453 auto protoMap = layerInfo->mutable_metadata(); in writeSnapshotToProto()
460 [&]() { return layerInfo->mutable_destination_frame(); }); in writeSnapshotToProto()