mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-12-27 22:08:29 +00:00
20d71f8928
This provides virtual display style output, useful for debugging virtio-gpu. Although using virtio-gpu for display purposes clashes with the more integreated virtio-wayland support, it is nonetheless helpful for debugging virtio-gpu, and is technically required to fully implement that device. TEST=cargo build -p gpu_display BUG=chromium:837073 CQ-DEPEND=CL:1096300 Change-Id: I59f895e951ef593d4119e7558168dd34223519ee Reviewed-on: https://chromium-review.googlesource.com/1043446 Commit-Ready: Zach Reizner <zachr@chromium.org> Tested-by: Zach Reizner <zachr@chromium.org> Reviewed-by: Zach Reizner <zachr@chromium.org>
11 lines
262 B
Rust
11 lines
262 B
Rust
extern crate gpu_display;
|
|
|
|
use gpu_display::*;
|
|
|
|
fn main() {
|
|
let mut disp = GpuDisplay::new().unwrap();
|
|
let surface_id = disp.create_surface(None, 1280, 1024).unwrap();
|
|
while !disp.close_requested(surface_id) {
|
|
disp.dispatch_events();
|
|
}
|
|
}
|