mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-08 19:33:07 +00:00
Adds `crosvm gpu <>` commands which allows for interactively adding/listing/removing virtio-gpu displays/scanouts. Also updates the virtio gpu device to use a Map<u32, Scanout> instead of a Vec<Scanout> and always report the maximum number of displays (16) with enabled/disabled. This helps handle the case of removing a display that is not the last display number. BUG=b:163864461 TEST=cargo build TEST=cargo build (with gpu feature disabled) TEST=Android build TEST=launch Cuttlefish TEST=crosvm gpu list-displays <socket> TEST=crosvm gpu add-displays --gpu-display=width=900,height=600 --gpu-display=width=600,height=480 <socket> TEST=crosvm gpu list-displays <socket> TEST=crosvm gpu remove-displays --display-id=1 <socket> Change-Id: I7530498897eb4e84199eaeb3d66df006df62817f Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/3911102 Commit-Queue: Jason Macnak <natsu@google.com> Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |