Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 791d48a5 authored by Vishnu Nair's avatar Vishnu Nair
Browse files

SF: Identify virtual displays from proto

Used in flicker tests to ignore virtual displays
created for screen recording.

Test: winscope
Bug: 140855415
Change-Id: Icf344443b64f0cbedb2a8080fbd8a4b90a197741
parent 5bc9e109
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -4952,6 +4952,7 @@ void SurfaceFlinger::dumpDisplayProto(LayersTraceProto& layersTraceProto) const
        });
        LayerProtoHelper::writeTransformToProto(display->getTransform(),
                                                displayProto->mutable_transform());
        displayProto->set_is_virtual(display->isVirtual());
    }
}

+2 −0
Original line number Diff line number Diff line
@@ -33,4 +33,6 @@ message DisplayProto {
    RectProto layer_stack_space_rect = 5;

    TransformProto transform = 6;

    bool is_virtual = 7;
}